refactor(backup): remove a redundant constant

remove-rest
Houkime 2023-12-22 11:31:56 +00:00
parent 04e3ee821f
commit 2f25329c43
1 changed files with 1 additions and 5 deletions

View File

@ -18,8 +18,6 @@ from selfprivacy_api.backup import Backups
from selfprivacy_api.jobs import Jobs, JobStatus, Job
SNAPSHOT_CACHE_TTL_HOURS = 6
SNAPSHOT_CACHE_TTL_HOURS = 6
@ -35,9 +33,7 @@ def validate_datetime(dt: datetime) -> bool:
# huey tasks need to return something
@huey.task()
def start_backup(
service_id: str, reason: BackupReason = BackupReason.EXPLICIT
) -> bool:
def start_backup(service_id: str, reason: BackupReason = BackupReason.EXPLICIT) -> bool:
"""
The worker task that starts the backup process.
"""