mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-13 08:11:54 +02:00
Fix code style.
This commit is contained in:
parent
39428cad19
commit
59218b4931
1 changed files with 2 additions and 3 deletions
|
@ -115,11 +115,10 @@ class Matcher:
|
||||||
if "location_restrictions" in structure:
|
if "location_restrictions" in structure:
|
||||||
self.location_restrictions = structure["location_restrictions"]
|
self.location_restrictions = structure["location_restrictions"]
|
||||||
|
|
||||||
def check_zoom_level(self, zoom_level: int):
|
def check_zoom_level(self, zoom_level: int) -> bool:
|
||||||
"""Check whether zoom level is matching."""
|
"""Check whether zoom level is matching."""
|
||||||
return (
|
return (
|
||||||
self.start_zoom_level is None
|
self.start_zoom_level is None or zoom_level >= self.start_zoom_level
|
||||||
or zoom_level >= self.start_zoom_level
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def is_matched(self, tags: dict[str, str]) -> bool:
|
def is_matched(self, tags: dict[str, str]) -> bool:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue