mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-04 18:53:10 +00:00
refactor(backups): delete legacy provider setting
This commit is contained in:
parent
9f096ed2c0
commit
f829a34dc7
|
@ -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