Skip to content

Commit

Permalink
Merge pull request #645 from kobotoolbox/kpi-2770-uuid-query
Browse files Browse the repository at this point in the history
Removed old check for ziggy
  • Loading branch information
noliveleger authored Sep 8, 2020
2 parents cbaa4e2 + d59e3f6 commit 805243c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions onadata/apps/viewer/models/parsed_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 805243c

Please sign in to comment.