Closed xwzliang closed 4 years ago
Platform: macOS Mojave Python version: 3.7 Pyzotero version: 1.4.13
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': ''}
Whoops. Good catch, thanks!
Released to PyPI as v1.4.14
Glad to be of help!
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': ''}