Skip to content

Commit

Permalink
hotfix: retrieve full collections
Browse files Browse the repository at this point in the history
  • Loading branch information
TideDra committed Dec 12, 2024
1 parent 759fc4e commit be22cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

def get_zotero_corpus(id:str,key:str) -> list[dict]:
zot = zotero.Zotero(id, 'user', key)
collections = {c['key']:c for c in zot.collections()}
collections = zot.everything(zot.collections())
collections = {c['key']:c for c in collections}
corpus = zot.everything(zot.items(itemType='conferencePaper || journalArticle || preprint'))
corpus = [c for c in corpus if c['data']['abstractNote'] != '']
def get_collection_path(col_key:str) -> str:
Expand Down

0 comments on commit be22cb0

Please sign in to comment.