Skip to content

Commit

Permalink
Fix py3 compare <> to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarreras committed May 9, 2024
1 parent cc44cc6 commit 081e34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ooui/graph/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def process_graph_data(ooui, values, fields, options=None):
is_stack = any(y.stacked is not None for y in ooui.y)

# Sort the data by the x-axis
sorted_data = sorted(data, key=lambda x: x['x'])
sorted_data = sorted(data, key=lambda x: x['x'] or "")

adjusted_stacked_data = sorted_data[:]
if is_stack and len([y for y in ooui.y if y.stacked is not None]) > 1:
Expand Down

0 comments on commit 081e34f

Please sign in to comment.