Skip to content

Commit

Permalink
Update extend_json_encoder.py
Browse files Browse the repository at this point in the history
添加redis set类型查询支持
  • Loading branch information
Nexpro authored Jul 14, 2021
1 parent 217d753 commit 63fa7f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/utils/extend_json_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def _(o):
return str(o)


@convert.register(set)
def _(o):
return list(o)


class ExtendJSONEncoder(json.JSONEncoder):
def default(self, obj):
try:
Expand Down

0 comments on commit 63fa7f3

Please # to comment.