Skip to content

Commit

Permalink
Ignore notes and attachments by typeName insted of itemTypeID
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddavis committed Jun 26, 2022
1 parent 5128aa1 commit 0f738a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/zothero/zotero.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
LEFT JOIN deletedItems
ON items.itemID = deletedItems.itemID
-- Ignore notes and attachments
WHERE items.itemTypeID not IN (1, 14)
WHERE itemTypes.typeName not like '%note%'
AND itemTypes.typeName not like '%attachment%'
AND deletedItems.dateDeleted IS NULL
"""

Expand Down

0 comments on commit 0f738a5

Please sign in to comment.