mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 17:26:46 +00:00
refactor(backups): remove excessive format-strings
This commit is contained in:
parent
f840a6e204
commit
7ccf495958
|
@ -15,7 +15,7 @@ def backup_job_type(service: Service) -> str:
|
|||
|
||||
|
||||
def autobackup_job_type() -> str:
|
||||
return f"backups.autobackup"
|
||||
return "backups.autobackup"
|
||||
|
||||
|
||||
def restore_job_type(service: Service) -> str:
|
||||
|
@ -45,7 +45,7 @@ def add_autobackup_job(services: List[Service]) -> Job:
|
|||
pretty_service_list: str = ", ".join(service_names)
|
||||
job = Jobs.add(
|
||||
type_id=autobackup_job_type(),
|
||||
name=f"Automatic backup",
|
||||
name="Automatic backup",
|
||||
description=f"Scheduled backup for services : {pretty_service_list}",
|
||||
)
|
||||
return job
|
||||
|
|
Loading…
Reference in a new issue