Fixed broken RSS feed URL when no articles are present

This commit is contained in:
Fabio Manganiello 2022-06-14 10:41:02 +02:00
parent 7064a4c098
commit 419220c6c9
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ def rss_route():
link=config.link,
categories=','.join(config.categories),
language=config.language,
last_pub_date=pages[0][1]['published'].strftime('%a, %d %b %Y %H:%M:%S GMT'),
last_pub_date=(
pages[0][1]['published'].strftime('%a, %d %b %Y %H:%M:%S GMT')
if pages else ''
),
items='\n\n'.join([
'''
<item>