This commit is contained in:
Aevann1 2022-01-25 01:49:02 +02:00
parent fb82d62410
commit 60015915b8
4 changed files with 37 additions and 5 deletions

View file

@ -478,6 +478,7 @@ def gumroad(v):
if not v.has_badge(20+tier):
new_badge = Badge(badge_id=20+tier, user_id=v.id)
g.db.add(new_badge)
g.db.flush()
send_notification(v.id, f"@AutoJanny has given you the following profile badge:\n\n![]({new_badge.path})\n\n{new_badge.name}")
g.db.commit()