add notification for make_admin and remove_admin

master
Aevann1 2022-12-21 16:38:02 +02:00
parent 960c0a332f
commit faf17f420c
1 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,8 @@ def make_admin(v:User, username):
)
g.db.add(ma)
send_repeatable_notification(user.id, f"@{v.username} added you as an admin!")
return {"message": f"@{user.username} has been made admin!"}
@ -215,6 +217,8 @@ def remove_admin(v:User, username):
)
g.db.add(ma)
send_repeatable_notification(user.id, f"@{v.username} removed you as an admin!")
return {"message": f"@{user.username} has been removed as admin!"}
@app.post("/distribute/<option_id>")