fix storing the bool of discord webhook

graphs-n-shit
lza_menace 4 years ago
parent 703c6815c4
commit 6c31ed3d68

@ -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…
Cancel
Save