mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] useless variables
This commit is contained in:
parent
fa47a9c0f2
commit
30353c1375
1 changed files with 0 additions and 3 deletions
3
run.py
3
run.py
|
@ -148,7 +148,6 @@ async def monitor_apps_lists(type="stable"):
|
|||
|
||||
for app_list_name, url in APPS_LISTS.items():
|
||||
async with aiohttp.ClientSession() as session:
|
||||
app_list = "official"
|
||||
task_logger.info(f"Downloading {app_list_name}.json...")
|
||||
async with session.get(url) as resp:
|
||||
data = await resp.json()
|
||||
|
@ -290,7 +289,6 @@ async def run_job(worker, job):
|
|||
|
||||
while not command.stdout.at_eof():
|
||||
data = await command.stdout.readline()
|
||||
line = data.decode().rstrip()
|
||||
|
||||
job.log += data.decode()
|
||||
# XXX seems to be okay performance wise but that's probably going to be
|
||||
|
@ -577,6 +575,5 @@ def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps
|
|||
app.run('0.0.0.0', port=4242, ssl=context, debug=True)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
argh.dispatch_command(main)
|
||||
|
|
Loading…
Add table
Reference in a new issue