From d59e3f6cf289c4c6bd8935e9d5358bc609519244 Mon Sep 17 00:00:00 2001 From: Anji Tong Date: Tue, 1 Sep 2020 16:38:02 -0400 Subject: [PATCH] Removed old check for ziggy --- onadata/apps/viewer/models/parsed_instance.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/onadata/apps/viewer/models/parsed_instance.py b/onadata/apps/viewer/models/parsed_instance.py index d50bbf5cf..1b079eac8 100644 --- a/onadata/apps/viewer/models/parsed_instance.py +++ b/onadata/apps/viewer/models/parsed_instance.py @@ -185,9 +185,6 @@ def _get_mongo_cursor(cls, query, fields, hide_deleted, username=None, id_string if username and id_string: query.update(cls.get_base_query(username, id_string)) - # check if query contains and _id and if its a valid ObjectID - if '_uuid' in query and ObjectId.is_valid(query['_uuid']): - query['_uuid'] = ObjectId(query['_uuid']) if hide_deleted: # display only active elements