mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
refactor(clone_packages): rename variable
This commit is contained in:
parent
b354a3ac1b
commit
cea271181b
1 changed files with 3 additions and 3 deletions
|
@ -99,15 +99,15 @@ def generate_mirrors():
|
||||||
"has_wiki": False,
|
"has_wiki": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
settings_mirror = requests.patch(
|
settings_mirror_request = requests.patch(
|
||||||
f"https://git.yunohost.org/api/v1/repos/YunoHost-Apps/{repo_name}",
|
f"https://git.yunohost.org/api/v1/repos/YunoHost-Apps/{repo_name}",
|
||||||
headers=api_header,
|
headers=api_header,
|
||||||
params=f"access_token={FORGEJO_TOKEN}",
|
params=f"access_token={FORGEJO_TOKEN}",
|
||||||
json=settings_mirror_data,
|
json=settings_mirror_data,
|
||||||
)
|
)
|
||||||
|
|
||||||
if settings_mirror.status_code != 200:
|
if settings_mirror_request.status_code != 200:
|
||||||
raise Exception("Request failed:", settings_mirror.text)
|
raise Exception("Request failed:", settings_mirror_request.text)
|
||||||
|
|
||||||
print("Repository cloned and configured.")
|
print("Repository cloned and configured.")
|
||||||
time.sleep(5) # Sleeping for 5 seconds to cooldown the API
|
time.sleep(5) # Sleeping for 5 seconds to cooldown the API
|
||||||
|
|
Loading…
Add table
Reference in a new issue