Removed AS from the message of the AS ranking changed alert (#9633)

This commit is contained in:
Manuel Ceroni 2025-09-08 11:55:15 +02:00 committed by GitHub
parent 1781c95191
commit d3b3a6b681
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -40,10 +40,9 @@ alert_as_ranking_changed.meta = {
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_as_ranking_changed:init(as, current_ranking, previous_ranking)
function alert_as_ranking_changed:init(current_ranking, previous_ranking)
self.super:init()
self.alert_type_params = {
as = as,
current_ranking = current_ranking,
previous_ranking = previous_ranking
}
@ -60,8 +59,7 @@ function alert_as_ranking_changed.format(ifid, alert, alert_type_params)
local alert_consts = require("alert_consts")
current = alert_consts.formatRanking(alert_type_params.current_ranking)
prev = alert_consts.formatRanking(alert_type_params.previous_ranking)
return i18n("alert_messages.alert_as_ranking_changed", {
as = alert_type_params.as,
return i18n("alert_messages.alert_as_ranking_changed", {
current_ranking = current,
previous_ranking = prev
})