diff --git a/girder/girder_large_image/models/image_item.py b/girder/girder_large_image/models/image_item.py index 051cceac0..4431f96dc 100644 --- a/girder/girder_large_image/models/image_item.py +++ b/girder/girder_large_image/models/image_item.py @@ -499,7 +499,7 @@ def removeThumbnailFiles(self, item, keep=0, sort=None, imageKey=None, } if imageKey and key == 'isLargeImageThumbnail': if imageKey == 'none': - query['thumbnailKey'] = {'not': {'$regex': '"imageKey":'}} + query['thumbnailKey'] = {'$not': {'$regex': '"imageKey":'}} else: query['thumbnailKey'] = {'$regex': '"imageKey":"%s"' % imageKey} query.update(kwargs)