Use real function name and not alias

This commit is contained in:
2022-12-05 12:03:49 +01:00
parent 4f92447915
commit 9a0177a17f

View File

@ -129,7 +129,7 @@ def send_to_discord(entry) -> Response:
Response: The response from the webhook. Response: The response from the webhook.
""" """
reader.mark_entry_as_read(entry) reader.set_entry_read(entry)
logger.debug(f"New entry: {entry.title}") logger.debug(f"New entry: {entry.title}")
webhook_url = reader.get_tag(entry.feed.url, "webhook") webhook_url = reader.get_tag(entry.feed.url, "webhook")
@ -143,7 +143,7 @@ def send_to_discord(entry) -> Response:
response = webhook.execute() response = webhook.execute()
if not response.ok: if not response.ok:
logger.error(f"Error: {response.status_code} {response.reason}") logger.error(f"Error: {response.status_code} {response.reason}")
reader.mark_entry_as_unread(entry) reader.set_entry_read(entry, False)
return response return response