Skip to content

Commit

Permalink
Fix #1 : Access to multivalued attr by indice
Browse files Browse the repository at this point in the history
Now we provide an access to the variables with the _+indice key:

py3o.companies._0.label
  • Loading branch information
G.Tjebbes committed Jun 24, 2015
1 parent 7550f5e commit 91c40d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqla_inspect/py3o.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def compile_obj(self, obj):
for index, rel_obj in enumerate(related):
compiled_res = column['__prop__'].compile_obj(rel_obj)
value[str(index)] = compiled_res
value["_" + str(index)] = compiled_res
value['l'].append(compiled_res)

else:
Expand Down

0 comments on commit 91c40d4

Please sign in to comment.