You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def __getitem__(self, index):
value = super(ListMap, self).__getitem__(index)
# Only create a new DictMap if we actually map into this list
if isinstance(value, dict) and not self._name_map.empty():
value = DictMap(value, self._name_map, self, None,
self._reverse_name_map)
elif isinstance(value, list) and not self._name_map.empty():
value = (DictMap(obj, self._name_map, self, None,
self._reverse_name_map)
for obj in value)
return value
but I am not confident, because I don't have a deep understanding of a project.
We need your help very much! Thank you!
The text was updated successfully, but these errors were encountered:
Hey!
Thank you for your great project, we use it in a very extensive way and really like it. But recently we faced with a problem I want to complain about.
Snippet for the problem: https://gist.github.com/xni/312880df3ec52d10a80d
Idea is: when you are trying to get some items from a ListMap, you receive not DictMaps but native dicts. Seems that the problem is in https://github.com/shakefu/humbledb/blob/master/humbledb/maps.py#L235 - when the result is not a dict, but list, no conversion is performed.
I suggest that kind of a solution:
but I am not confident, because I don't have a deep understanding of a project.
We need your help very much! Thank you!
The text was updated successfully, but these errors were encountered: