mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-02 14:16:38 +00:00
refactor(backup): remove a redundant constant
This commit is contained in:
parent
04e3ee821f
commit
2f25329c43
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue