aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2026-04-27 22:04:49 +0100
committerAlex Schofield <git@ajschof.me>2026-04-27 22:04:49 +0100
commitf896458629f0ed7ac1d64775710980856d8a7c64 (patch)
treed312db9572efc371b9757164ddf9d68669bff3b9 /main.py
parent016b835dcd90e7dd4f7b4534d15376b6f6bd3e85 (diff)
downloadfuelnearme-f896458629f0ed7ac1d64775710980856d8a7c64.tar.gz
fuelnearme-f896458629f0ed7ac1d64775710980856d8a7c64.zip
replace .get() with direct indexing in sort_stations()
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
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)
git.ajschof.me — hosted by ajschofield — powered by cgit