github-backup 0.51.0__py3-none-any.whl → 0.51.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
github_backup/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.51.0"
1
+ __version__ = "0.51.1"
@@ -919,12 +919,6 @@ def download_attachment_file(url, path, auth, as_app=False, fine=False):
919
919
  "error": None,
920
920
  }
921
921
 
922
- if os.path.exists(path):
923
- metadata["success"] = True
924
- metadata["http_status"] = 200 # Assume success if already exists
925
- metadata["size_bytes"] = os.path.getsize(path)
926
- return metadata
927
-
928
922
  # Create simple request (no API query params)
929
923
  request = Request(url)
930
924
  request.add_header("Accept", "application/octet-stream")
@@ -1337,10 +1331,10 @@ def download_attachments(
1337
1331
  attachments_dir = os.path.join(item_cwd, "attachments", str(number))
1338
1332
  manifest_path = os.path.join(attachments_dir, "manifest.json")
1339
1333
 
1340
- # Load existing manifest if skip_existing is enabled
1334
+ # Load existing manifest to prevent duplicate downloads
1341
1335
  existing_urls = set()
1342
1336
  existing_metadata = []
1343
- if args.skip_existing and os.path.exists(manifest_path):
1337
+ if os.path.exists(manifest_path):
1344
1338
  try:
1345
1339
  with open(manifest_path, "r") as f:
1346
1340
  existing_manifest = json.load(f)
@@ -1395,9 +1389,6 @@ def download_attachments(
1395
1389
  filename = get_attachment_filename(url)
1396
1390
  filepath = os.path.join(attachments_dir, filename)
1397
1391
 
1398
- # Check for collision BEFORE downloading
1399
- filepath = resolve_filename_collision(filepath)
1400
-
1401
1392
  # Download and get metadata
1402
1393
  metadata = download_attachment_file(
1403
1394
  url,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github-backup
3
- Version: 0.51.0
3
+ Version: 0.51.1
4
4
  Summary: backup a github user or organization
5
5
  Home-page: http://github.com/josegonzalez/python-github-backup
6
6
  Author: Jose Diaz-Gonzalez
@@ -0,0 +1,9 @@
1
+ github_backup/__init__.py,sha256=1aQCHIs4QPNUtw_wChzJwhINvlLDSxS3S3qxxd-DKeU,23
2
+ github_backup/github_backup.py,sha256=2N0crWKzRfkb5ZOlI5pn2NRxSXOmApmdB68noATWAbk,74783
3
+ github_backup-0.51.1.data/scripts/github-backup,sha256=I79TNA67phytRmI9nm_LlD9h2zauXFOsOn9tYyAy9pU,1546
4
+ github_backup-0.51.1.dist-info/licenses/LICENSE.txt,sha256=ML-pLyn1qtAKo_DHMcQ8-p7k3f8cp-IR-mf5B49R2rk,1085
5
+ github_backup-0.51.1.dist-info/METADATA,sha256=rjm9_2D5ivEA1y9NUJhVbKA3C113jd0Jq3ATaGrvdhA,21544
6
+ github_backup-0.51.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ github_backup-0.51.1.dist-info/top_level.txt,sha256=Za6fKRAlxZ0b3ZBH_osPqklLe14LetdNAkvAQANT2AA,14
8
+ github_backup-0.51.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
+ github_backup-0.51.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- github_backup/__init__.py,sha256=5j_riw1v3MMRXNOOd6h7WlISOYlrHrS61_8RReiM4yA,23
2
- github_backup/github_backup.py,sha256=RuqAJo0U7q3BdSp--vxvhZJWPzXrhaj1aRjwvBqRCRc,75127
3
- github_backup-0.51.0.data/scripts/github-backup,sha256=I79TNA67phytRmI9nm_LlD9h2zauXFOsOn9tYyAy9pU,1546
4
- github_backup-0.51.0.dist-info/licenses/LICENSE.txt,sha256=ML-pLyn1qtAKo_DHMcQ8-p7k3f8cp-IR-mf5B49R2rk,1085
5
- github_backup-0.51.0.dist-info/METADATA,sha256=hs33ckMCaiNoIPcTp3C7dX07tBGR5YdSZ79NNVwiWZg,21544
6
- github_backup-0.51.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- github_backup-0.51.0.dist-info/top_level.txt,sha256=Za6fKRAlxZ0b3ZBH_osPqklLe14LetdNAkvAQANT2AA,14
8
- github_backup-0.51.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
- github_backup-0.51.0.dist-info/RECORD,,