style: linting

This commit is contained in:
Inex Code 2024-09-02 22:42:29 +03:00
parent 68d0ee8c5d
commit e6b7a1c168
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -15,7 +15,6 @@ from selfprivacy_api.graphql.mutations.mutation_interface import (
GenericJobMutationReturn,
GenericMutationReturn,
MutationReturnInterface,
GenericJobMutationReturn,
)
import selfprivacy_api.actions.system as system_actions