API: Only return papers in the papers list if they have 1+ citation or symbol
@@ -103,7 +103,9 @@ export class Connection {
FROM paper
ORDER BY symbols DESC, citations DESC
`);
- return response.rows.map(row => ({
+ return response.rows
+ .filter(row => parseInt(row.citations) > 0 || parseInt(row.symbols) > 0)
+ .map(row => ({
s2Id: row.s2_id,
arxivId: row.arxiv_id,
extractedCitationCount: parseInt(row.citations),
