fixing Python 3.9 compat

This commit is contained in:
Frisk 2024-08-29 18:54:31 +02:00
parent f5b7a3b6ec
commit 482fa31929

View file

@ -495,7 +495,7 @@ class Wiki:
return return
async def remove_webhook_from_db(self, webhook_url: str, reason: str, send_reason=False): async def remove_webhook_from_db(self, webhook_url: str, reason: str, send_reason=False):
logger.info(f"Removing a webhook with ID of {webhook_url.split("/")[0]} from the database due to {reason}.") logger.info(f"Removing a webhook with ID of {webhook_url.split('/')[0]} from the database due to {reason}.")
# TODO Write a reason for removal to a webhook if send_reason # TODO Write a reason for removal to a webhook if send_reason
dbmanager.add(("DELETE FROM rcgcdb WHERE webhook = $1", (webhook_url,))) dbmanager.add(("DELETE FROM rcgcdb WHERE webhook = $1", (webhook_url,)))