From f08292de56815817c68924efb4a503c750dc8ae6 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 9 Mar 2022 20:22:09 -0700 Subject: [PATCH] Clearing map cache files if any import was successful. --- modules/map/lib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/map/lib.py b/modules/map/lib.py index b6e32399..1f08a3b5 100644 --- a/modules/map/lib.py +++ b/modules/map/lib.py @@ -97,11 +97,10 @@ async def import_pbfs(pbfs: List[str]): with get_db_session(commit=True) as session: map_file = get_or_create_map_file(pbf, session) map_file.imported = True - + finally: if any_success: # A map was imported, remove the tile cache files. clear_mod_tile() - finally: IMPORT_EVENT.clear()