mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-24 13:01:28 +00:00
10 lines
281 B
Python
10 lines
281 B
Python
from selfprivacy_api.utils.huey import huey
|
|
from selfprivacy_api.services.service import Service
|
|
from selfprivacy_api.backup import Backups
|
|
|
|
# huey tasks need to return something
|
|
@huey.task()
|
|
def start_backup(service: Service) -> bool:
|
|
Backups.back_up(service)
|
|
return True
|