Skip to content

Commit

Permalink
bugfix - false positive to find _id object id fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Signorini committed Jul 17, 2018
1 parent 79bd85d commit 70fd180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/libs/deepUpdateForMongo.py
Expand Up @@ -7,8 +7,10 @@ def updaterIds(data, path):
if isinstance(last, int):
last = ".".join(map(str, path))

if isinstance(last, str):
if isinstance(last, str) and len(str(data)) == 24:
data = Ruler.searchID(last, data)

if isinstance(last, str) and len(str(data)) > 24:
data = Ruler.searchAt(last, data)

return data

0 comments on commit 70fd180

Please sign in to comment.