Skip to content

Commit 26c3714

Browse files
committed
moved all_columns list where appropriate - above code block that uses it
1 parent bd2132b commit 26c3714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/grid_objs/grid_objs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ def __init__(self, columns_or_json):
163163
# collect and sort all orders in case orders do not start
164164
# at zero or there are jump discontinuities between them
165165
all_orders = []
166-
ordered_columns = []
167166
for column_name in columns_or_json['cols'].keys():
168167
all_orders.append(columns_or_json['cols'][column_name]['order'])
169168
all_orders.sort()
170169

171170
# put columns in order in a list
171+
ordered_columns = []
172172
for order in all_orders:
173173
for column_name in columns_or_json['cols'].keys():
174174
if columns_or_json['cols'][column_name]['order'] == order:

0 commit comments

Comments
 (0)