-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix json mget when dict is returned #114
Conversation
Hi @Pichlerdom, thanks for this PR! This is a good catch. One thing I would want to change in this PR: So it would look like: ...
result = [self._get_single(key, path_str, empty_list_as_none=True) for key in keys]
return JSONObject.encode(result) |
Hi @cunla. I have two question on how to proceed with this PR now. Thanks for your help in advance and awesome that you responded in such a nice and clear way... It's realy good for beginners like me trying to learn. |
When merging we can use
No need to reopen/submit a new one. When you push a new commit to your branch (or amend an existing commit) it will be added automatically to the PR. See some of the closed PRs in this repo, some of them have 20 commits :) (example)
No problem! Thank you for contributing! |
I have tried the change you suggested but i don't think it will work. I get this error msg:
Which suggests to me that redis expects a list of byte encoded json objects in "redis/commands/json/decoders.py" bulk_of_jsons. |
Interesting... Ok, in that case, let's merge it as you originally proposed. |
Nice. |
Fix AssertionError in _run_command when mget returns a dict within the list of results.
Can be reproduced by running this script. I would expect the output to be
[[5, 8, {"b": "nested3"}]]
.This is my first PR so please don't be to harsh. :)