Fix level checking.

This commit is contained in:
Sergey Vartanov 2021-09-22 05:57:58 +03:00
parent 10608a7625
commit 23a05534df

View file

@ -499,7 +499,7 @@ def check_level_overground(tags: dict[str, Any]) -> bool:
try:
levels: map = map(float, tags["level"].replace(",", ".").split(";"))
for level in levels:
if level <= 0:
if level < 0:
return False
except ValueError:
pass