Commit 8f877973 authored by Jérome Perrin's avatar Jérome Perrin

Listbox: do not get stat values on brains by index when we can simply get them...

Listbox: do not get stat values on brains by index when we can simply get them by key (ie. column name)
parent 19efdc8f
...@@ -1836,7 +1836,7 @@ class ListBoxRenderer: ...@@ -1836,7 +1836,7 @@ class ListBoxRenderer:
stat_result = {} stat_result = {}
for index, (k, v) in enumerate(self.getSelectedColumnList()): for index, (k, v) in enumerate(self.getSelectedColumnList()):
try: try:
stat_result[k] = str(stat_brain[0][index + 1]) stat_result[k] = stat_brain[0][k]
except IndexError: except IndexError:
stat_result[k] = '' stat_result[k] = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment