Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Dec 29, 2023
1 parent e58a1e9 commit 369e687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def processor(value):

def result_processor(self, dialect, coltype):
def processor(value):
if not isinstance(value, bytes):
if value and not isinstance(value, bytes):
value = bytes(value)
return str(bson.ObjectId(value)) if bson.ObjectId.is_valid(value) else value

Expand Down

0 comments on commit 369e687

Please sign in to comment.