From 9ec607b556170c08a300d8ccabaf874b236bad1a Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 23 Dec 2025 14:11:45 +0100 Subject: [PATCH] change confusing value in debug output for missing importance --- src/nominatim_api/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nominatim_api/logging.py b/src/nominatim_api/logging.py index dccc69c1..7a54e176 100644 --- a/src/nominatim_api/logging.py +++ b/src/nominatim_api/logging.py @@ -288,7 +288,7 @@ class TextLogger(BaseLogger): self._write(f"rank={res.rank_address}, ") self._write(f"osm={''.join(map(str, res.osm_object or []))}, ") self._write(f'cc={res.country_code}, ') - self._write(f'importance={res.importance or -1:.5f})\n') + self._write(f'importance={res.importance or float("NaN"):.5f})\n') total += 1 self._write(f'TOTAL: {total}\n\n')