host_manager

This commit is contained in:
Zsolt Ero
2024-01-03 16:21:23 +01:00
parent 57b86626a5
commit 5d0b165c99
4 changed files with 18 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ def download_tileset(area: str, version: str, list_versions: bool, runs_dir: Pat
if not runs_dir.parent.exists():
sys.exit("run dir's parent doesn't exist")
download_and_extract_tileset(area, selected_version, runs_dir)
return download_and_extract_tileset(area, selected_version, runs_dir)
@cli.command()
@@ -118,10 +118,14 @@ def sync(ctx):
"""
print(datetime.datetime.now(tz=datetime.timezone.utc))
ctx.invoke(download_tileset, area='monaco')
# ctx.invoke(download_tileset, area='planet')
downloaded = False
downloaded += ctx.invoke(download_tileset, area='monaco')
# d2 = ctx.invoke(download_tileset, area='planet')
if downloaded:
ctx.invoke(mount)
ctx.invoke(download_assets)
ctx.invoke(mount)
if __name__ == '__main__':