fds
This commit is contained in:
parent
78db71d97c
commit
6d30e59dad
4 changed files with 30 additions and 3 deletions
|
@ -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\n\n{mail_badge.name}")
|
||||
|
||||
|
||||
g.db.add(user)
|
||||
g.db.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue