fix bad bug #3

main
Jan Beníček 2024-06-20 17:31:59 +02:00
parent 81b7cad978
commit 5528fd02e7
1 changed files with 1 additions and 1 deletions

View File

@ -2,5 +2,5 @@ import discordwebhook, datetime
def send_url_to_discord(webhook_url: str, backup_url: str, datetim: datetime.datetime, backup_name: str): def send_url_to_discord(webhook_url: str, backup_url: str, datetim: datetime.datetime, backup_name: str):
webhook = discordwebhook.Webhook(url=webhook_url) webhook = discordwebhook.Webhook(url=webhook_url)
embed = discordwebhook.Embed(title=f"Backup of {backup_name} from {datetim.year}-{datetim.month}-{datetim.day}", description=backup_url) embed = discordwebhook.Embed(title=f"Backup of {backup_name} from {str(datetim.year)}-{str(datetim.month)}-{str(datetim.day)}", description=backup_url)
webhook.send_sync(content="", embed=embed) webhook.send_sync(content="", embed=embed)