option to keep all activities private from strava zip, fix copy of register link
This commit is contained in:
@@ -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"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user