fix: division by zero

This commit is contained in:
Inex Code 2024-03-07 23:29:37 +03:00
parent a543f6da2a
commit 1f1fcc223b
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ def do_autobackup() -> None:
"""
time = datetime.utcnow().replace(tzinfo=timezone.utc)
services_to_back_up = Backups.services_to_back_up(time)
if not services_to_back_up:
return
job = add_autobackup_job(services_to_back_up)
progress_per_service = 100 // len(services_to_back_up)