Skip to content

Commit

Permalink
Merge pull request #7 from richarddavis/filter_notes_attachments
Browse files Browse the repository at this point in the history
Ignore notes and attachments by typeName instead of itemTypeID
  • Loading branch information
giovannicoppola authored Jun 27, 2022
2 parents 7a3346c + 0f738a5 commit 671f794
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 671f794

Please sign in to comment.