Use or instead of if else

This commit is contained in:
Joakim Hellsén 2023-01-21 14:17:12 +01:00
commit 0bcc551a3f
No known key found for this signature in database
GPG key ID: C889E6DC5EDBB36D

View file

@ -113,7 +113,7 @@ def replace_tags(feed: Feed, entry: Entry) -> str:
{"{{entry_read}}": str(entry.read)},
{"{{entry_read_modified}}": entry.read_modified},
{"{{entry_summary}}": summary},
{"{{entry_summary_raw}}": entry.summary if entry.summary else ""},
{"{{entry_summary_raw}}": entry.summary or ""},
{"{{entry_title}}": entry.title},
{"{{entry_updated}}": entry.updated},
{"{{image_1}}": first_image},