... I'm a stupid idiot.

This commit is contained in:
Frisk 2018-07-05 20:03:41 +02:00
parent b25052e7f9
commit abf3670392
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -251,8 +251,8 @@ def webhook_formatter(action, STATIC, **params):
params["old_groups"] = _("none") params["old_groups"] = _("none")
if len(params["new_groups"]) < 4: if len(params["new_groups"]) < 4:
params["new_groups"] = _("none") params["new_groups"] = _("none")
reason = "| {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else "" reason = ": {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else ""
params["desc"] = _("Groups changed from {old_groups} to {new_groups}{is_reason} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], is_reason = ":" if reason else "", reason=reason) params["desc"] = _("Groups changed from {old_groups} to {new_groups} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], reason=reason)
elif action == 2: elif action == 2:
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=params["title"].replace(" ", "_")) link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=params["title"].replace(" ", "_"))
embed["title"] = _("Protected {target}").format(target=params["title"]) embed["title"] = _("Protected {target}").format(target=params["title"])