extra rss items for big updates
This commit is contained in:
parent
7328346502
commit
9ee9b17526
2 changed files with 21 additions and 10 deletions
|
@ -7,7 +7,7 @@ module Info
|
|||
allImages, sfwImages, nsfwImages,
|
||||
thumb, latestDateFor, latestYearFor,
|
||||
sfwLinks, nsfwLinks, sfwUpdates, nsfwUpdates,
|
||||
updatesFor, hasUpdatesFor, lastUpdateFor,
|
||||
updatesFor, bigUpdatesFor, hasUpdatesFor, lastUpdateFor,
|
||||
tagsFor, descFor, imagesFor, linksFor,
|
||||
|
||||
CompareKey (..), compareKeyFor, compareFor, sortFor,
|
||||
|
@ -182,6 +182,9 @@ updatesWith p i = mapMaybe (traverse $ filterNE p) i.updates
|
|||
updatesFor :: Bool -> Info -> [(Date, NonEmpty Update)]
|
||||
updatesFor nsfw = updatesWith \u -> nsfw || u.sfw
|
||||
|
||||
bigUpdatesFor :: Bool -> Info -> [(Date, NonEmpty Update)]
|
||||
bigUpdatesFor nsfw = updatesWith \u -> not u.ignoreSort && (nsfw || u.sfw)
|
||||
|
||||
sfwUpdates, nsfwUpdates :: Info -> [(Date, NonEmpty Update)]
|
||||
sfwUpdates = updatesWith (.sfw)
|
||||
nsfwUpdates = updatesWith (.nsfw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue