background task later
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 53s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been skipped
Run linting on the backend code / Build (pull_request) Successful in 28s
Run testing on the backend code / Build (pull_request) Failing after 3m15s

This commit is contained in:
2025-01-28 08:25:43 +01:00
parent 978cae290b
commit 4a904c3d3c
6 changed files with 17 additions and 23 deletions

View File

@@ -98,7 +98,7 @@ class Overpass :
def fill_cache(self, json_data) :
def fill_cache(self, json_data: list) :
"""
Fill cache with data by using a hollow cache entry's information.
"""
@@ -194,7 +194,7 @@ class Overpass :
@staticmethod
def _build_query_from_hollow(json_data):
def _build_query_from_hollow(json_data: list):
"""
Build query string using information from a hollow cache entry.
"""
@@ -322,7 +322,7 @@ def get_base_info(elem: dict, osm_type: OSM_TYPES, with_name=False) :
def fill_cache():
overpass = Overpass(caching_strategy='JSON', cache_dir=OSM_CACHE_DIR)
overpass = Overpass()
with os.scandir(OSM_CACHE_DIR) as it:
for entry in it: