urschrei / pyzotero

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

Cache for “attachment, linked_file” and “attachment, linked_url” template are the same. #111

Closed xwzliang closed 4 years ago

xwzliang commented 4 years ago

General

Platform: macOS Mojave Python version: 3.7 Pyzotero version: 1.4.13

Problem description

Cache for “attachment, linked_file” and “attachment, linked_url” template are the same.

Code: linked_url_temp = zot.item_template('attachment', 'linked_url')
print(linked_url_temp)
linked_file_temp = zot.item_template('attachment', 'linked_file')
print(linked_file_temp)

Output: {'itemType': 'attachment', 'linkMode': 'linked_url', 'title': '', 'accessDate': '', 'url': '', 'note': '', 'tags': [], 'collections': [], 'relations' : {}, 'contentType': '', 'charset': ''}
{'itemType': 'attachment', 'linkMode': 'linked_url', 'title': '', 'accessDate': '', 'url': '', 'note': '', 'tags': [], 'collections': [], 'relations' : {}, 'contentType': '', 'charset': ''}

urschrei commented 4 years ago

Whoops. Good catch, thanks!

urschrei commented 4 years ago

Released to PyPI as v1.4.14

xwzliang commented 4 years ago

Glad to be of help!