fix storing the bool of discord webhook
This commit is contained in:
parent
703c6815c4
commit
6c31ed3d68
|
@ -16,4 +16,6 @@ def post_discord_webhook(post):
|
||||||
discord_webhook_url = config.DISCORD_URL
|
discord_webhook_url = config.DISCORD_URL
|
||||||
r = requests.post(discord_webhook_url, data=msg)
|
r = requests.post(discord_webhook_url, data=msg)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
post.to_discord = True
|
||||||
|
post.save()
|
||||||
print(f"Posted #{post.id} to Discord")
|
print(f"Posted #{post.id} to Discord")
|
||||||
|
|
Loading…
Reference in New Issue