Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost

master
Aevann1 2022-09-20 18:43:19 +00:00
commit f1e6c90260
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ def comment(v):
g.db.flush()
filename = f'files/assets/images/badges/{badge.id}.webp'
copyfile(oldname, filename)
process_image(filename, 200)
process_image(filename, 400)
requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS,
data=f'{{"files": ["https://{SITE}/assets/images/badges/{badge.id}.webp"]}}', timeout=5)
except Exception as e:

View File

@ -391,4 +391,4 @@
{% endif %}
</body>
</html>
</html>