Skip to content
This repository has been archived by the owner. It is now read-only.

[ZoteroWrap] 'Loading cached Zotero data...' displayed when distant data are loaded #8

Closed
pafonta opened this issue Dec 14, 2017 · 0 comments
Assignees
Labels

Comments

@pafonta
Copy link
Contributor

pafonta commented Dec 14, 2017

NAT version:

0.4.0

Unexpected behaviour:

The logging messages 'Loading cached Zotero data...' and 'Loading distant Zotero data...' are displayed one after another at initialization when the distant data are loaded.

Behind the scene, there is no problem with the loading of the data. The behaviour is due to a conflict between the implementation logic and the printing.

Code to reproduce the behaviour:

from nat.zotero_wrap import ZoteroWrap

library_id = "<your library ID>"
library_type = "group"
api_key = "<your API key>"
work_dir = "<your directory path>"

zot = ZoteroWrap(library_id, library_type, api_key, work_dir)

zot.initialize()

Stack trace:

Loading cached Zotero data...
Loading distant Zotero data...
Distant Zotero data loaded.
@pafonta pafonta added the bug label Dec 14, 2017
@pafonta pafonta changed the title [ZoteroWrap] 'Loading cached Zotero data...' displayed when distant data are loaded at initialization [ZoteroWrap] 'Loading cached Zotero data...' displayed when distant data are loaded Jan 11, 2018
@pafonta pafonta added this to the v0.5.0 milestone Jan 11, 2018
@pafonta pafonta self-assigned this Jan 11, 2018
@pafonta pafonta modified the milestones: v0.5.0, v0.4.1 Jan 24, 2018
@pafonta pafonta removed this from the v0.4.2 milestone Apr 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant