why yes, I test on prod, how could you tell?
parent
956a8c8506
commit
eee6058330
|
@ -386,7 +386,11 @@ def update_marsey(v):
|
||||||
process_image(filename, resize=250, trim=True)
|
process_image(filename, resize=250, trim=True)
|
||||||
|
|
||||||
x = requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS,
|
x = requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS,
|
||||||
data=f'{{"files": ["https://{SITE}/e/{name}.webp", "https://{SITE}/assets/images/emojis/{name}.webp", "https://{SITE}/asset_submissions/marseys/original/{name}.{format}"]}}', timeout=5)
|
data={"files": [
|
||||||
|
f"https://{SITE}/e/{name}.webp",
|
||||||
|
f"https://{SITE}/assets/images/emojis/{name}.webp",
|
||||||
|
f"https://{SITE}/asset_submissions/marseys/original/{name}.{format}"
|
||||||
|
]}, timeout=5)
|
||||||
|
|
||||||
print(x, flush=True)
|
print(x, flush=True)
|
||||||
print(x.text, flush=True)
|
print(x.text, flush=True)
|
||||||
|
|
Loading…
Reference in New Issue