forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2024-02-17 19:49:37 +02:00
parent a1b80e3743
commit a8f6ca4409
1 changed files with 4 additions and 2 deletions

View File

@ -25,6 +25,8 @@ def badge_grant(user, badge_id, description=None, url=None, notify=True):
g.db.flush()
if notify:
send_repeatable_notification(user.id,
notif = send_repeatable_notification(user.id,
"@AutoJanny has given you the following profile badge:\n\n" +
f"{badge.path}\n\n**{badge.name}**\n\n{badge.badge.description}").created_utc += 1
f"{badge.path}\n\n**{badge.name}**\n\n{badge.badge.description}")
if notif:
notif.created_utc -= 1