mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] bad reference
This commit is contained in:
parent
87b00ec929
commit
266241bffe
1 changed files with 2 additions and 2 deletions
4
run.py
4
run.py
|
@ -180,7 +180,7 @@ async def monitor_apps_lists(type="stable"):
|
|||
repo.save()
|
||||
|
||||
if repo.random_job_day is None:
|
||||
repo.random_job_day = randint(1, 28)
|
||||
repo.random_job_day = random.randint(1, 28)
|
||||
repo.save()
|
||||
|
||||
# new app
|
||||
|
@ -192,7 +192,7 @@ async def monitor_apps_lists(type="stable"):
|
|||
revision=commit_sha,
|
||||
app_list=app_list_name,
|
||||
state="working" if app_data["state"] in ("working", "validated") else "other_than_working",
|
||||
random_job_day=randint(1, 28),
|
||||
random_job_day=random.randint(1, 28),
|
||||
)
|
||||
|
||||
await create_job(app_id, app_list_name, repo, job_command_last_part)
|
||||
|
|
Loading…
Add table
Reference in a new issue