Skip to content

Commit

Permalink
Sort attractions location list alphabetically
Browse files Browse the repository at this point in the history
Requested via Slack.
  • Loading branch information
kitsuta committed Dec 17, 2024
1 parent 576089d commit 033c1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/models/attraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def used_location_opts(self):
@property
def unused_location_opts(self):
locs = set(e.location for e in self.events)
return [(loc, s) for loc, s in c.EVENT_LOCATION_OPTS if loc not in locs]
return sorted([(loc, s) for loc, s in c.EVENT_LOCATION_OPTS if loc not in locs], key=lambda x: x[1])

@property
def advance_checkin_label(self):
Expand Down

0 comments on commit 033c1f8

Please sign in to comment.