Skip to content

Commit afb019b

Browse files
committed
more review feedback
1 parent 69bc72d commit afb019b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

intbot/core/tasks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def process_github_webhook(wh: Webhook):
5959
channel = discord_channel_router(wh)
6060

6161
if channel == dont_send_it:
62+
# Mark as processed, to avoid re-processing in the future if we
63+
# shouldn't send a message.
6264
wh.processed_at = timezone.now()
6365
wh.save()
6466
return
@@ -86,6 +88,8 @@ def process_zammad_webhook(wh: Webhook):
8688
channel = discord_channel_router(wh)
8789

8890
if channel == dont_send_it:
91+
# Mark as processed, to avoid re-processing in the future if we
92+
# shouldn't send a message.
8993
wh.processed_at = timezone.now()
9094
wh.save()
9195
return

0 commit comments

Comments
 (0)