forked from MarseyWorld/MarseyWorld
fsd
parent
b1e9e03016
commit
e5571bc680
|
@ -82,7 +82,7 @@ def activate(v):
|
|||
user.email = email
|
||||
user.is_activated = True
|
||||
|
||||
if not any([b.badge_id == 2 for b in user.badges]):
|
||||
if not any(b.badge_id == 2 for b in user.badges):
|
||||
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}")
|
||||
|
|
Loading…
Reference in New Issue