Skip to content

Commit

Permalink
Merge f5d756b into aca11ee
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Chan committed Aug 30, 2018
2 parents aca11ee + f5d756b commit c77767c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redisworks/redisworks.py
Expand Up @@ -128,6 +128,8 @@ def get_obj(value, actual_type):
value = datetime.datetime.strptime(value, DATE_FORMAT).date()
elif actual_type in {dict, list} or isinstance(actual_type, (MutableMapping, Iterable)):
value = json.loads(value)
elif actual_type is bool:
value = actual_type == "True"
else:
value = actual_type(value)

Expand Down

0 comments on commit c77767c

Please sign in to comment.