mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-26 16:58:45 +03:00
Fix profiling middleware hooks.
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ def main() -> None:
|
||||
config["database"]["read_only"] = True
|
||||
|
||||
if args.profile:
|
||||
from werkzeug.contrib.profiler import ProfilerMiddleware
|
||||
from werkzeug.middleware.profiler import ProfilerMiddleware
|
||||
|
||||
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, profile_dir=".") # type: ignore
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ def main() -> None:
|
||||
register_games()
|
||||
|
||||
if args.profile:
|
||||
from werkzeug.contrib.profiler import ProfilerMiddleware
|
||||
from werkzeug.middleware.profiler import ProfilerMiddleware
|
||||
|
||||
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, profile_dir=".") # type: ignore
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ if __name__ == "__main__":
|
||||
register_games()
|
||||
|
||||
if args.profile:
|
||||
from werkzeug.contrib.profiler import ProfilerMiddleware
|
||||
from werkzeug.middleware.profiler import ProfilerMiddleware
|
||||
|
||||
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, profile_dir=".") # type: ignore
|
||||
|
||||
|
||||
Reference in New Issue
Block a user