feat: Add OSM refresh script and update loading scripts for improved database handling
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user