style: ruff format main.py

This commit is contained in:
RockChinQ
2026-04-08 02:10:18 +08:00
parent 71ac719aee
commit 1cdd428bcc

View File

@@ -114,7 +114,9 @@ class HTTPController:
for i in range(len(segments) - 1, 0, -1):
parent_path = '/'.join(segments[:i]) + '.html'
if os.path.exists(os.path.join(frontend_path, parent_path)):
response = await quart.send_from_directory(frontend_path, parent_path, mimetype='text/html')
response = await quart.send_from_directory(
frontend_path, parent_path, mimetype='text/html'
)
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
response.headers['Pragma'] = 'no-cache'
response.headers['Expires'] = '0'