mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 09:16:51 +00:00
refactor(backups): delete legacy provider setting
This commit is contained in:
parent
612a46ee42
commit
b5e2499a30
|
@ -41,9 +41,6 @@ class Backups:
|
||||||
provider = ProviderClass(login="", key="", location=file_path, repo_id="")
|
provider = ProviderClass(login="", key="", location=file_path, repo_id="")
|
||||||
Storage.store_provider(provider)
|
Storage.store_provider(provider)
|
||||||
|
|
||||||
def set_provider(provider: AbstractBackupProvider):
|
|
||||||
Storage.store_provider(provider)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_last_backed_up(service: Service) -> Optional[datetime]:
|
def get_last_backed_up(service: Service) -> Optional[datetime]:
|
||||||
"""Get a timezone-aware time of the last backup of a service"""
|
"""Get a timezone-aware time of the last backup of a service"""
|
||||||
|
|
Loading…
Reference in a new issue