option to keep all activities private from strava zip, fix copy of register link

This commit is contained in:
Davide Scaini
2026-04-10 22:51:29 +02:00
parent da622131fd
commit bc30e0a2fc
5 changed files with 41 additions and 7 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ def strava_zip_iter(
zip_path: Path,
data_dir: Path,
originals_dir: Optional[Path] = None,
privacy: str = "public",
) -> Generator[dict, None, None]:
"""Process a Strava export ZIP, yielding SSE-style progress dicts.
@@ -120,7 +121,7 @@ def strava_zip_iter(
orig_dest = originals_dir / entry_name
shutil.copy2(tmp_path, orig_dest)
ingest_parsed(parsed, data_dir, privacy="public")
ingest_parsed(parsed, data_dir, privacy=privacy)
imported += 1
yield {"type": "progress", "n": n, "total": total, "name": display_name, "status": "imported"}