Fix profiling middleware hooks.
This commit is contained in:
parent
da5e3fe52f
commit
058bdf0e66
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user