dfsfds
This commit is contained in:
parent
c09ff3d2bc
commit
82d77d9c14
5 changed files with 83 additions and 128 deletions
|
@ -439,13 +439,8 @@ def badge_grant_post(v):
|
|||
if url: new_badge.url = url
|
||||
|
||||
g.db.add(new_badge)
|
||||
g.db.flush()
|
||||
|
||||
text = f"""
|
||||
@{v.username} has given you the following profile badge:
|
||||
\n\n
|
||||
\n\n{new_badge.name}
|
||||
"""
|
||||
text = f"@{v.username} has given you the following profile badge:\n\n\n\n{new_badge.name}"
|
||||
send_notification(user.id, text)
|
||||
|
||||
g.db.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue