fix storing the bool of discord webhook

This commit is contained in:
lza_menace 2020-10-29 01:42:41 -07:00
parent 703c6815c4
commit 6c31ed3d68

View file

@ -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")