mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-04 12:50:44 +08:00
Fix python lint errors
This commit is contained in:
1 parent
0732086c6c
commit
cae696181b
1 file changed
+1
-1
@@ -257,7 +257,7 @@ def create_app(storage: BaseStorage) -> Bottle:
|
||||
@app.get("/static/<filename:path>")
|
||||
def send_static(filename: str) -> BottleViewReturn:
|
||||
if "gzip" in request.headers["Accept-Encoding"]:
|
||||
gz_filename = filename.strip('/\\') + ".gz"
|
||||
gz_filename = filename.strip("/\\") + ".gz"
|
||||
if os.path.exists(os.path.join(STATIC_DIR, gz_filename)):
|
||||
filename = gz_filename
|
||||
return static_file(filename, root=STATIC_DIR)
|
||||
|
||||
Reference in new issue
Block a user