This commit is contained in:
Aevann1 2021-12-28 15:51:26 +02:00
parent 78db71d97c
commit 6d30e59dad
4 changed files with 30 additions and 3 deletions

View file

@ -83,9 +83,10 @@ def activate(v):
user.is_activated = True
if not any([b.badge_id == 2 for b in user.badges]):
mail_badge = Badge(user_id=user.id,
badge_id=2)
mail_badge = Badge(user_id=user.id, badge_id=2)
g.db.add(mail_badge)
send_notification(user.id, f"@AutoJanny has given you the following profile badge:\n\n![]({mail_badge.path})\n\n{mail_badge.name}")
g.db.add(user)
g.db.commit()