diff options
| author | Alex Schofield <git@ajschof.me> | 2026-04-27 22:04:49 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2026-04-27 22:04:49 +0100 |
| commit | f896458629f0ed7ac1d64775710980856d8a7c64 (patch) | |
| tree | d312db9572efc371b9757164ddf9d68669bff3b9 /main.py | |
| parent | 016b835dcd90e7dd4f7b4534d15376b6f6bd3e85 (diff) | |
| download | fuelnearme-f896458629f0ed7ac1d64775710980856d8a7c64.tar.gz fuelnearme-f896458629f0ed7ac1d64775710980856d8a7c64.zip | |
replace .get() with direct indexing in sort_stations()
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
