Use real function name and not alias
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user