1
0
mirror of https://github.com/simon987/sist2.git synced 2025-04-16 08:56:45 +00:00

close db connection before loop

This commit is contained in:
simon987 2023-06-07 20:25:13 -04:00
parent 7bc4b73e43
commit 7eb064162e

@ -10,7 +10,9 @@ from jobs import Sist2Job
def _check_schedule(db: PersistentState, run_job):
for job in db["jobs"]:
jobs = list(db["jobs"])
for job in jobs:
job: Sist2Job
if job.schedule_enabled: