notify me too

master
Aevann1 2022-12-19 23:32:52 +02:00
parent c99f4bd2c5
commit 9ceca862d9
1 changed files with 2 additions and 2 deletions

View File

@ -423,14 +423,14 @@ def execute_blackjack(v, target, body, type):
elif type == 'flag': elif type == 'flag':
extra_info = f"reports on {target.permalink}" extra_info = f"reports on {target.permalink}"
elif type in ('comment', 'message', 'modmail'): elif type in ('comment', 'message', 'modmail'):
for id in (CARP_ID, IDIO_ID): for id in (CARP_ID, IDIO_ID, AEVANN_ID):
n = Notification(comment_id=target.id, user_id=id) n = Notification(comment_id=target.id, user_id=id)
g.db.add(n) g.db.add(n)
g.db.flush() g.db.flush()
extra_info = None extra_info = None
if extra_info: if extra_info:
for id in (CARP_ID, IDIO_ID): for id in (CARP_ID, IDIO_ID, AEVANN_ID):
send_repeatable_notification(id, f"Blackjack for @{v.username}: {extra_info}") send_repeatable_notification(id, f"Blackjack for @{v.username}: {extra_info}")
return False return False
return True return True