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

View file

@ -101,7 +101,10 @@ def rss_route():
link=config.link, link=config.link,
categories=','.join(config.categories), categories=','.join(config.categories),
language=config.language, 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([ items='\n\n'.join([
''' '''
<item> <item>