From 6c31ed3d6867617c22d05cba99257dbf9e511bea Mon Sep 17 00:00:00 2001 From: lza_menace Date: Thu, 29 Oct 2020 01:42:41 -0700 Subject: [PATCH] fix storing the bool of discord webhook --- suchwow/discord.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suchwow/discord.py b/suchwow/discord.py index 6ac5ba6..fa9eaa2 100644 --- a/suchwow/discord.py +++ b/suchwow/discord.py @@ -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")