From ab813c412602aa64c9b0b822fed8becfcbc29fc1 Mon Sep 17 00:00:00 2001 From: Vivaan Verma <54081925+doublevcodes@users.noreply.github.com> Date: Thu, 22 Jul 2021 12:28:40 +0100 Subject: Change constant name Co-authored-by: Joe Banks --- arthur/apis/cloudflare/zones.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arthur/apis/cloudflare/zones.py') diff --git a/arthur/apis/cloudflare/zones.py b/arthur/apis/cloudflare/zones.py index e027a9a..ecf17cd 100644 --- a/arthur/apis/cloudflare/zones.py +++ b/arthur/apis/cloudflare/zones.py @@ -30,12 +30,12 @@ async def purge_zone(zone_identifier: str) -> dict: """Purge the cache for a Cloudflare zone.""" endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}" - PURGE_EVERYTHING = { + request_body = { "purge_everything": True } async with aiohttp.ClientSession() as session: - async with session.post(endpoint, headers=AUTH_HEADER, body=PURGE_EVERYTHING) as response: + async with session.post(endpoint, headers=AUTH_HEADER, body=request_body) as response: info = await response.json() return {"success": info["success"], "errors": info["errors"]} -- cgit v1.2.3