mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4055eb99c | ||
|
|
d8a330559c | ||
|
|
de93824498 |
@@ -1,6 +1,11 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.13.1 (2017-04-11)
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
- Fix error when repository has no updated_at value. [Nicolai Ehemann]
|
||||||
|
|
||||||
0.13.0 (2017-04-05)
|
0.13.0 (2017-04-05)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|||||||
@@ -520,7 +520,7 @@ def backup_repositories(args, output_directory, repositories):
|
|||||||
repos_template = 'https://{0}/repos'.format(get_github_api_host(args))
|
repos_template = 'https://{0}/repos'.format(get_github_api_host(args))
|
||||||
|
|
||||||
if args.incremental:
|
if args.incremental:
|
||||||
last_update = max(repository['updated_at'] for repository in repositories) # noqa
|
last_update = max(list(repository['updated_at'] for repository in repositories) or [time.strftime('%Y-%m-%dT%H:%M:%SZ', time.localtime())]) # noqa
|
||||||
last_update_path = os.path.join(output_directory, 'last_update')
|
last_update_path = os.path.join(output_directory, 'last_update')
|
||||||
if os.path.exists(last_update_path):
|
if os.path.exists(last_update_path):
|
||||||
args.since = open(last_update_path).read().strip()
|
args.since = open(last_update_path).read().strip()
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.13.0'
|
__version__ = '0.13.1'
|
||||||
|
|||||||
Reference in New Issue
Block a user