mirror of
https://github.com/Balshgit/github_mirror.git
synced 2025-09-10 23:20:41 +03:00
increase mirror time inteval
This commit is contained in:
parent
c683b3ab65
commit
db44942894
@ -43,7 +43,7 @@ class RepositoryCreator:
|
|||||||
|
|
||||||
# name of repository will generate automatically from link
|
# name of repository will generate automatically from link
|
||||||
name = url.split('/')[-1].replace('.git', '')
|
name = url.split('/')[-1].replace('.git', '')
|
||||||
update_time = random.randint(48, 96) # prevent update all repos at the same time
|
update_time = random.randint(120, 580) # prevent update all repos at the same time
|
||||||
git_data = {'repo_name': name, "wiki": True, "private": False, 'mirror_interval': f'{update_time}h0m0s',
|
git_data = {'repo_name': name, "wiki": True, "private": False, 'mirror_interval': f'{update_time}h0m0s',
|
||||||
"mirror": True, "lfs": True, "clone_addr": url}
|
"mirror": True, "lfs": True, "clone_addr": url}
|
||||||
if group_name:
|
if group_name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user