From 6e1b454d1c28804c0f4528db9e6cea2c8c98ef08 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 8 Sep 2022 19:57:20 +0200 Subject: [PATCH] fix last commit --- files/helpers/actions.py | 2 +- files/routes/admin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 666f44449..ed36541ab 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -25,7 +25,7 @@ def badge_grant(user, badge_id, description=None, url=None): send_repeatable_notification(user.id, f"@AutoJanny has given you the following profile badge:\n\n" + - f"![]({badge.path})\n\n**{badge.name}**\n\n{badge.description}") + f"![]({badge.path})\n\n**{badge.name}**\n\n{badge.badge.description}") def archiveorg(url): diff --git a/files/routes/admin.py b/files/routes/admin.py index 2a7693acd..ff256ec69 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -567,7 +567,7 @@ def badge_grant_post(v): g.db.flush() if v.id != user.id: - text = f"@{v.username} has given you the following profile badge:\n\n![]({new_badge.path})\n\n**{new_badge.name}**\n\n{new_badge.description}" + text = f"@{v.username} has given you the following profile badge:\n\n![]({new_badge.path})\n\n**{new_badge.name}**\n\n{new_badge.badge.description}" send_notification(user.id, text) ma = ModAction(