Skip to content

Commit be22cb0

Browse files
committed
hotfix: retrieve full collections
1 parent 759fc4e commit be22cb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

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

0 commit comments

Comments
 (0)