Skip to content

Commit

Permalink
Fix a bug if the year is not specified for a live paper
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Mar 27, 2024
1 parent 3a0b8a2 commit 52b7f55
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -80,7 +80,7 @@ async def query_live_papers(
summary = LivePaperSummary.from_kg_query(lp, kg_user_client)
if summary:
summaries.append(summary)
return sorted(summaries, key=lambda lp: lp.year)
return sorted(summaries, key=lambda lp: lp.year or 1970)


@router.get("/livepapers-published/", response_model=List[LivePaperSummary])
Expand Down

0 comments on commit 52b7f55

Please sign in to comment.