Skip to content

Commit

Permalink
Fix nxid query to exclude deleted docs
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarahui committed Mar 9, 2022
1 parent 1d9f918 commit e4b1711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pynux/nxid.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@

FOLDER_NXQL = u"SELECT * FROM SampleCustomPicture, CustomFile, CustomVideo, CustomAudio, CustomThreeD " \
u"WHERE ecm:path STARTSWITH '{}' " \
u"AND ecm:isTrashed = 0 " \
u"AND ecm:pos is NULL"

DOCUMENT_NXQL = u"SELECT * FROM SampleCustomPicture, CustomFile, CustomVideo, CustomAudio, CustomThreeD " \
u"WHERE ecm:path = '{}' " \
u"AND ecm:isTrashed = 0 " \
u"AND ecm:pos is NULL"

def main(argv=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages
setup(
name='pynux',
version = "1.0.12",
version = "1.0.13",
packages = find_packages(),
install_requires = [
'requests',
Expand Down

0 comments on commit e4b1711

Please sign in to comment.