Skip to content

Commit

Permalink
Fix issue #1486
Browse files Browse the repository at this point in the history
This solution seems to fit the current code best, but alternatively one could get the value earlier and return  `UuidRepresentation.STANDARD` early if the value is of a non-string type.
  • Loading branch information
tgm-git authored Sep 21, 2022
1 parent 3dbb53d commit dd97531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eve/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def uuid_representation_as_string():
"javaLegacy": UuidRepresentation.JAVA_LEGACY,
}
return uuid_map[
config.MONGO_OPTIONS.get("uuidRepresentation", UuidRepresentation.STANDARD)
config.MONGO_OPTIONS.get("uuidRepresentation", "standard")
]

if ignore_fields:
Expand Down

0 comments on commit dd97531

Please sign in to comment.