1
0
mirror of synced 2024-11-13 17:40:47 +01:00

Fix profiling middleware hooks.

This commit is contained in:
Jennifer Taylor 2024-09-26 00:42:02 +00:00
parent da5e3fe52f
commit 058bdf0e66
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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