feat: Add OSM refresh script and update loading scripts for improved database handling

This commit is contained in:
2025-10-11 20:21:14 +02:00
parent c2927f2f60
commit 1c8adb36fe
4 changed files with 297 additions and 63 deletions

View File

@@ -45,10 +45,17 @@ def build_argument_parser() -> argparse.ArgumentParser:
help="Path to the normalized track JSON file produced by tracks_import.py",
)
parser.add_argument(
"--commit/--no-commit",
"--commit",
dest="commit",
action="store_true",
default=True,
help="Commit the transaction (default: commit). Use --no-commit for dry runs.",
help="Commit the transaction after loading (default).",
)
parser.add_argument(
"--no-commit",
dest="commit",
action="store_false",
help="Rollback the transaction after loading (useful for dry runs).",
)
return parser