mirror of
https://github.com/JonasunderscoreJones/turbo-octo-potato.git
synced 2025-10-24 10:39:19 +02:00
fixed webhook for weeks
This commit is contained in:
parent
fb8a94d97c
commit
ccca4cb42b
1 changed files with 6 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ def send_webhook():
|
|||
data += data2['results']
|
||||
|
||||
# Create the message content
|
||||
content = "Here are the comebacks from today:\n"
|
||||
content = "# Here are the comebacks from this week:\n"
|
||||
for i in data:
|
||||
content += f"{i['date']} > {i['title']} - {i['artist']}: {i['links'] if i['links'] != [] else '*No Links*'}\n"
|
||||
|
||||
|
|
@ -60,4 +60,8 @@ def send_webhook():
|
|||
if response.status_code == 204:
|
||||
print("Webhook sent successfully!")
|
||||
else:
|
||||
print(f"Failed to send webhook. Status code: {response.status_code}")
|
||||
print(f"Failed to send webhook. Status code: {response.status_code}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
send_webhook()
|
||||
Loading…
Add table
Add a link
Reference in a new issue