[mod] useless variables

This commit is contained in:
Laurent Peuch 2018-09-10 03:07:43 +02:00
parent fa47a9c0f2
commit 30353c1375

3
run.py
View file

@ -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)