We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 635bab0 commit dcba969Copy full SHA for dcba969
aredis_om/model/model.py
@@ -1199,11 +1199,9 @@ def to_string(s):
1199
)
1200
1201
1202
- try:
1203
- fields["json"] = fields["$"]
1204
- del fields["$"]
1205
- except KeyError:
1206
- pass
+ if fields.get("$"):
+ fields["json"] = fields.get("$")
+ fields.pop("$")
1207
1208
if "json" in fields:
1209
json_fields = json.loads(fields["json"])
0 commit comments