urschrei / pyzotero

Pyzotero: a Python client for the Zotero API
https://pyzotero.readthedocs.org
Other
916 stars 101 forks source link

Formatting parameters ignored when fetching items from Zotero #195

Open Smogglethorp-T-Hendlesworthington opened 13 hours ago

Smogglethorp-T-Hendlesworthington commented 13 hours ago

Platform:

Problem Formatting parameters are ignored when fetching items from Zotero

from pyzotero import zotero

API_KEY =   # ...
LIBRARY_ID = # ...
LIBRARY_TYPE = # ...

library = zotero.Zotero(LIBRARY_ID, LIBRARY_TYPE, API_KEY)

print(len(library.top(format="versions"))

This will always give a length of 100. Further inspection shows that the call to library.top(format="versions") returns exactly the same thing independent of the parameters provided (or no parameters at all).

The issue isn't present on version 1.5.25—so it's due to a change made in the past few days (as of the writing of this).

urschrei commented 13 hours ago

Yep, that's a bug. v1.5.28 (on PyPI now) should fix it.

Smogglethorp-T-Hendlesworthington commented 13 hours ago

Yup that did it! Thank you~