mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 09:16:51 +00:00
refactor(backups): make lookup_provider not public
This commit is contained in:
parent
dbac010303
commit
6b0c55a786
|
@ -41,7 +41,7 @@ class Backups:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def provider():
|
def provider():
|
||||||
return Backups.lookup_provider()
|
return Backups._lookup_provider()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def set_provider(
|
def set_provider(
|
||||||
|
@ -62,7 +62,7 @@ class Backups:
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def lookup_provider() -> AbstractBackupProvider:
|
def _lookup_provider() -> AbstractBackupProvider:
|
||||||
redis_provider = Backups.load_provider_redis()
|
redis_provider = Backups.load_provider_redis()
|
||||||
if redis_provider is not None:
|
if redis_provider is not None:
|
||||||
return redis_provider
|
return redis_provider
|
||||||
|
|
Loading…
Reference in a new issue