lint: reformat python code with black
This commit is contained in:
parent
331beb01b4
commit
a406a7974b
88 changed files with 2579 additions and 1608 deletions
|
@ -21,7 +21,7 @@ class ProxyAzureCdnAutomation(ProxyAutomation):
|
|||
"azure_client_secret",
|
||||
"azure_subscription_id",
|
||||
"azure_tenant_id",
|
||||
"smart_zone"
|
||||
"smart_zone",
|
||||
]
|
||||
|
||||
template = """
|
||||
|
@ -162,8 +162,7 @@ class ProxyAzureCdnAutomation(ProxyAutomation):
|
|||
|
||||
def import_state(self, state: Optional[Any]) -> None:
|
||||
proxies = Proxy.query.filter(
|
||||
Proxy.provider == self.provider,
|
||||
Proxy.destroyed.is_(None)
|
||||
Proxy.provider == self.provider, Proxy.destroyed.is_(None)
|
||||
).all()
|
||||
for proxy in proxies:
|
||||
proxy.url = f"https://{proxy.slug}.azureedge.net"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue