Fix matrix notification always reporting that the app failed everything x_x

This commit is contained in:
Alexandre Aubin 2023-03-05 14:51:10 +01:00
parent b797f46798
commit d130e12d44

2
run.py
View file

@ -744,7 +744,7 @@ async def run_job(worker, job):
job_id_with_url = f"[#{job.id}]({job_url})"
if job.state == "error":
msg = f"Job {job_id_with_url} for {job_app} failed miserably :("
elif not level == 0:
elif level == 0:
msg = f"App {job_app} failed all tests in job {job_id_with_url} :("
elif public_level is None:
msg = f"App {job_app} rises from level (unknown) to {level} in job {job_id_with_url} !"