more fix
All checks were successful
/ build (push) Successful in 1m51s

This commit is contained in:
mr-boneman 2025-03-27 12:55:06 +01:00
parent 32d5bde113
commit f28e66b548

View file

@ -54,8 +54,9 @@ proc mixRssFeeds*(
entries[^1].items = entries[^1].items.mapIt( entries[^1].items = entries[^1].items.mapIt(
block: block:
var item = it var item = it
if feed.timeFormat.len != 0 and item.pubDate.isSome(): if feed.timeFormat.len != 0:
# if the IDE screams at you here, ignore it # if the IDE screams at you here, ignore it
if item.pubDate.isSome():
item.pubdate = item.pubdate =
some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat)) some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat))
if item.updated.isSome(): if item.updated.isSome():