blekhmanlab / rxivist

API providing access to papers and authors scraped from biorxiv.org
https://rxivist.org
GNU Affero General Public License v3.0
60 stars 11 forks source link

Auto-failover the default search #241

Closed rabdill closed 5 years ago

rabdill commented 5 years ago

When something goes wrong with the Crossref Twitter stats, the front page will sometimes display 0 results. Rather than just sending 0 result back in response to the default search, the API should detect that the response is empty, switch to "weekly," and send that instead. The web client will detect the difference and update the display automatically.

rabdill commented 5 years ago

https://github.com/blekhmanlab/rxivist/commit/7b4042ff188d48674ed55f15f7153ff155ed4870