From e4b17113031b989b8c223321686f5f79cffcf18b Mon Sep 17 00:00:00 2001 From: Barbara Hui Date: Wed, 9 Mar 2022 12:13:32 -0800 Subject: [PATCH] Fix nxid query to exclude deleted docs --- pynux/nxid.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pynux/nxid.py b/pynux/nxid.py index c65cb9b..053c46b 100755 --- a/pynux/nxid.py +++ b/pynux/nxid.py @@ -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): diff --git a/setup.py b/setup.py index 709e926..b6adf8c 100644 --- a/setup.py +++ b/setup.py @@ -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',