mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2026-02-20 11:54:36 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68af1d406a | ||
|
|
b112b43a08 | ||
|
|
f54a5458f6 |
12
CHANGES.rst
12
CHANGES.rst
@@ -1,9 +1,19 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
0.61.4 (2026-02-16)
|
0.61.5 (2026-02-18)
|
||||||
-------------------
|
-------------------
|
||||||
------------------------
|
------------------------
|
||||||
|
- Fix empty repository crash due to None timestamp comparison (#489)
|
||||||
|
[Rodos]
|
||||||
|
|
||||||
|
Empty repositories have None for pushed_at/updated_at, causing a
|
||||||
|
TypeError when compared to the last_update string. Use .get() with
|
||||||
|
truthiness check to skip None timestamps in incremental tracking.
|
||||||
|
|
||||||
|
|
||||||
|
0.61.4 (2026-02-16)
|
||||||
|
-------------------
|
||||||
- Fix HTTP 451 DMCA and 403 TOS handling regression (#487) [Rodos]
|
- Fix HTTP 451 DMCA and 403 TOS handling regression (#487) [Rodos]
|
||||||
|
|
||||||
The DMCA handling added in PR #454 had a bug: make_request_with_retry()
|
The DMCA handling added in PR #454 had a bug: make_request_with_retry()
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "0.61.4"
|
__version__ = "0.61.5"
|
||||||
|
|||||||
@@ -1772,9 +1772,9 @@ def backup_repositories(args, output_directory, repositories):
|
|||||||
|
|
||||||
last_update = "0000-00-00T00:00:00Z"
|
last_update = "0000-00-00T00:00:00Z"
|
||||||
for repository in repositories:
|
for repository in repositories:
|
||||||
if "updated_at" in repository and repository["updated_at"] > last_update:
|
if repository.get("updated_at") and repository["updated_at"] > last_update:
|
||||||
last_update = repository["updated_at"]
|
last_update = repository["updated_at"]
|
||||||
elif "pushed_at" in repository and repository["pushed_at"] > last_update:
|
elif repository.get("pushed_at") and repository["pushed_at"] > last_update:
|
||||||
last_update = repository["pushed_at"]
|
last_update = repository["pushed_at"]
|
||||||
|
|
||||||
if repository.get("is_gist"):
|
if repository.get("is_gist"):
|
||||||
|
|||||||
Reference in New Issue
Block a user