mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
fix storing the bool of discord webhook
This commit is contained in:
parent
703c6815c4
commit
6c31ed3d68
1 changed files with 2 additions and 0 deletions
|
@ -16,4 +16,6 @@ def post_discord_webhook(post):
|
|||
discord_webhook_url = config.DISCORD_URL
|
||||
r = requests.post(discord_webhook_url, data=msg)
|
||||
r.raise_for_status()
|
||||
post.to_discord = True
|
||||
post.save()
|
||||
print(f"Posted #{post.id} to Discord")
|
||||
|
|
Loading…
Reference in a new issue