Get paper by doi
(doi: str)
| 771 | |
| 772 | |
| 773 | def get_paper_by_doi(doi: str) -> Optional[Dict]: |
| 774 | """Get paper by doi""" |
| 775 | conn = get_connection() |
| 776 | cursor = conn.cursor() |
| 777 | cursor.execute(""" |
| 778 | SELECT * FROM papers WHERE doi = ? |
| 779 | """, (doi,)) |
| 780 | row = cursor.fetchone() |
| 781 | conn.close() |
| 782 | if row: |
| 783 | return _build_paper_dict(row) |
| 784 | return None |
| 785 | |
| 786 | |
| 787 | def get_unpushed_papers(limit: int = 100) -> List[Dict]: |
nothing calls this directly
no test coverage detected