From f896458629f0ed7ac1d64775710980856d8a7c64 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Mon, 27 Apr 2026 22:04:49 +0100 Subject: replace .get() with direct indexing in sort_stations() --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9d9217c..b6c245a 100644 --- a/main.py +++ b/main.py @@ -78,7 +78,7 @@ def filter_df( def sort_stations(stations: list[dict], sort: str) -> list[dict]: - sort_key = SORT_KV.get(sort) + sort_key = SORT_KV[sort] return sorted(stations, key=lambda d: d[sort_key] if d[sort_key] != "N/A" else 999) -- cgit v1.2.3