mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Clearing map cache files if any import was successful.
This commit is contained in:
parent
67fba510dc
commit
f08292de56
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue