Skip to content

Commit

Permalink
解决MySQL查询time类型数据序列化为秒的问题 fix hhyo#547
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Nov 28, 2019
1 parent 6950a09 commit c4c7da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/extend_json_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _(o):

@convert.register(timedelta)
def _(o):
return o.total_seconds()
return o.__str__()


@convert.register(Decimal)
Expand Down

0 comments on commit c4c7da7

Please sign in to comment.