diff options
| author | 2021-07-25 17:28:02 +0100 | |
|---|---|---|
| committer | 2021-07-25 17:28:02 +0100 | |
| commit | e9d20bd6f3994a07c0503b524498e9691f5a0fbd (patch) | |
| tree | 134e83a44097c3df5977f24e5695f6b644a284ec | |
| parent | Add .vscode to .gitignore (diff) | |
| parent | Indentation fix (diff) | |
Fix function formatting
| -rw-r--r-- | .vscode/settings.json | 3 | ||||
| -rw-r--r-- | arthur/exts/cloudflare/zones.py | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 163c984..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "python.formatting.provider": "black" -} diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index 91eee33..564dd2e 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -20,9 +20,11 @@ class Zones(commands.Cog): await ctx.send_help(ctx.command) @zones.command(name="purge") - async def purge(self, ctx: commands.Context, - zone_name: Optional[str] = "pythondiscord.com" - ) -> None: + async def purge( + self, + ctx: commands.Context, + zone_name: Optional[str] = "pythondiscord.com" + ) -> None: """Command to clear the Cloudflare cache of the specified zone.""" pydis_zones = await zones.list_zones(zone_name) required_id = pydis_zones[zone_name] |