mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-10 13:03:11 +00:00
style: linting
This commit is contained in:
parent
68d0ee8c5d
commit
e6b7a1c168
|
@ -46,12 +46,12 @@ class UserDataAutoUpgradeSettings(BaseModel):
|
|||
|
||||
def set_dns_provider(provider: DnsProvider, token: str):
|
||||
with WriteUserData() as user_data:
|
||||
if not "dns" in user_data.keys():
|
||||
if "dns" not in user_data.keys():
|
||||
user_data["dns"] = {}
|
||||
user_data["dns"]["provider"] = provider.value
|
||||
|
||||
with WriteUserData(file_type=UserDataFiles.SECRETS) as secrets:
|
||||
if not "dns" in secrets.keys():
|
||||
if "dns" not in secrets.keys():
|
||||
secrets["dns"] = {}
|
||||
secrets["dns"]["apiKey"] = token
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ from selfprivacy_api.graphql.mutations.mutation_interface import (
|
|||
GenericJobMutationReturn,
|
||||
GenericMutationReturn,
|
||||
MutationReturnInterface,
|
||||
GenericJobMutationReturn,
|
||||
)
|
||||
|
||||
import selfprivacy_api.actions.system as system_actions
|
||||
|
|
Loading…
Reference in a new issue