sneakers-the-rat / paper-feeds

A FastAPI web server for creating RSS feeds for scholarly journals with the magic of adversarial interoperability
GNU General Public License v3.0
60 stars 4 forks source link

Bugfix: Filter non-paper types #20

Closed sneakers-the-rat closed 6 months ago

sneakers-the-rat commented 6 months ago

Fix: https://github.com/sneakers-the-rat/journal-rss/issues/16

16 was actually two bugs in a trenchcoat. First the simplify datetime function wasn't handling a null-like value (specifically, {'date-parts': [[None]]}), and then it choked on how the journal didn't have a 'published' field. I imagine we'll need to keep doing a bunch of massaging to handle incomplete metadata. I am a little hesitant to just mark all timestamp columns as "optional" because we do need one of them, but ideally we'll make a routine to get one of those and store them in a required timestamp column.

Anyway

i'll leave this open until tmrw if people have feelings about this and then merge :)