|
@@ -235,3 +235,175 @@ INFO: 219.146.255.202:63812 - "GET /evaluations HTTP/1.1" 200 OK
|
|
|
INFO: 219.146.255.202:63821 - "GET /subject/1 HTTP/1.1" 200 OK
|
|
INFO: 219.146.255.202:63821 - "GET /subject/1 HTTP/1.1" 200 OK
|
|
|
INFO: 219.146.255.202:63822 - "GET /subject/1 HTTP/1.1" 200 OK
|
|
INFO: 219.146.255.202:63822 - "GET /subject/1 HTTP/1.1" 200 OK
|
|
|
INFO: 219.146.255.202:63821 - "GET /static/uploads/e4e1cae0534f47f988212620b70e0c0e.png HTTP/1.1" 304 Not Modified
|
|
INFO: 219.146.255.202:63821 - "GET /static/uploads/e4e1cae0534f47f988212620b70e0c0e.png HTTP/1.1" 304 Not Modified
|
|
|
|
|
+INFO: 127.0.0.1:35140 - "GET /subjects HTTP/1.1" 200 OK
|
|
|
|
|
+INFO: 127.0.0.1:35146 - "POST /subject/1/text HTTP/1.1" 404 Not Found
|
|
|
|
|
+INFO: 127.0.0.1:35154 - "GET / HTTP/1.1" 200 OK
|
|
|
|
|
+INFO: 127.0.0.1:35162 - "GET /subjects HTTP/1.1" 200 OK
|
|
|
|
|
+INFO: 127.0.0.1:35176 - "GET /subject/1 HTTP/1.1" 500 Internal Server Error
|
|
|
|
|
+ERROR: Exception in ASGI application
|
|
|
|
|
+Traceback (most recent call last):
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
|
|
|
|
|
+ result = await app( # type: ignore[func-returns-value]
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ self.scope, self.receive, self.send
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ )
|
|
|
|
|
+ ^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
|
|
|
|
|
+ return await self.app(scope, receive, send)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/fastapi/applications.py", line 1054, in __call__
|
|
|
|
|
+ await super().__call__(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/applications.py", line 113, in __call__
|
|
|
|
|
+ await self.middleware_stack(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/middleware/errors.py", line 187, in __call__
|
|
|
|
|
+ raise exc
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/middleware/errors.py", line 165, in __call__
|
|
|
|
|
+ await self.app(scope, receive, _send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
|
|
|
|
|
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
|
|
+ raise exc
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
|
|
+ await app(scope, receive, sender)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 715, in __call__
|
|
|
|
|
+ await self.middleware_stack(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 735, in app
|
|
|
|
|
+ await route.handle(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 288, in handle
|
|
|
|
|
+ await self.app(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 76, in app
|
|
|
|
|
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
|
|
+ raise exc
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
|
|
+ await app(scope, receive, sender)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 73, in app
|
|
|
|
|
+ response = await f(request)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/fastapi/routing.py", line 301, in app
|
|
|
|
|
+ raw_response = await run_endpoint_function(
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ ...<3 lines>...
|
|
|
|
|
+ )
|
|
|
|
|
+ ^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
|
|
|
|
|
+ return await dependant.call(**values)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/home/myprojector/manyi_review/app.py", line 88, in subject_detail
|
|
|
|
|
+ return templates.TemplateResponse("subject_detail.html", {
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ "request": request, "subject": subject, "dates": dates,
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ ...<2 lines>...
|
|
|
|
|
+ "subjects": crud.get_all_subjects(session)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ })
|
|
|
|
|
+ ^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/templating.py", line 208, in TemplateResponse
|
|
|
|
|
+ template = self.get_template(name)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/templating.py", line 131, in get_template
|
|
|
|
|
+ return self.env.get_template(name)
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 1013, in get_template
|
|
|
|
|
+ return self._load_template(name, globals)
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 972, in _load_template
|
|
|
|
|
+ template = self.loader.load(self, name, self.make_globals(globals))
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/loaders.py", line 138, in load
|
|
|
|
|
+ code = environment.compile(source, name, filename)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 768, in compile
|
|
|
|
|
+ self.handle_exception(source=source_hint)
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 939, in handle_exception
|
|
|
|
|
+ raise rewrite_traceback_stack(source=source)
|
|
|
|
|
+ File "templates/subject_detail.html", line 158, in template
|
|
|
|
|
+ <span class="text-[10px] text-gray-400">点击{%'展开解析{% if txt.answer %} / 收起解析{% endif %}'%}</span>
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+jinja2.exceptions.TemplateSyntaxError: tag name expected
|
|
|
|
|
+INFO: 127.0.0.1:35190 - "GET /timeline HTTP/1.1" 200 OK
|
|
|
|
|
+INFO: 127.0.0.1:35202 - "GET /review HTTP/1.1" 200 OK
|
|
|
|
|
+INFO: 127.0.0.1:35204 - "GET /evaluations HTTP/1.1" 200 OK
|
|
|
|
|
+INFO: 127.0.0.1:35212 - "GET /subject/1 HTTP/1.1" 500 Internal Server Error
|
|
|
|
|
+ERROR: Exception in ASGI application
|
|
|
|
|
+Traceback (most recent call last):
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
|
|
|
|
|
+ result = await app( # type: ignore[func-returns-value]
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ self.scope, self.receive, self.send
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ )
|
|
|
|
|
+ ^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
|
|
|
|
|
+ return await self.app(scope, receive, send)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/fastapi/applications.py", line 1054, in __call__
|
|
|
|
|
+ await super().__call__(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/applications.py", line 113, in __call__
|
|
|
|
|
+ await self.middleware_stack(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/middleware/errors.py", line 187, in __call__
|
|
|
|
|
+ raise exc
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/middleware/errors.py", line 165, in __call__
|
|
|
|
|
+ await self.app(scope, receive, _send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
|
|
|
|
|
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
|
|
+ raise exc
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
|
|
+ await app(scope, receive, sender)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 715, in __call__
|
|
|
|
|
+ await self.middleware_stack(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 735, in app
|
|
|
|
|
+ await route.handle(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 288, in handle
|
|
|
|
|
+ await self.app(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 76, in app
|
|
|
|
|
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
|
|
+ raise exc
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
|
|
+ await app(scope, receive, sender)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/routing.py", line 73, in app
|
|
|
|
|
+ response = await f(request)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/fastapi/routing.py", line 301, in app
|
|
|
|
|
+ raw_response = await run_endpoint_function(
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ ...<3 lines>...
|
|
|
|
|
+ )
|
|
|
|
|
+ ^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
|
|
|
|
|
+ return await dependant.call(**values)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/home/myprojector/manyi_review/app.py", line 88, in subject_detail
|
|
|
|
|
+ return templates.TemplateResponse("subject_detail.html", {
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ "request": request, "subject": subject, "dates": dates,
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ ...<2 lines>...
|
|
|
|
|
+ "subjects": crud.get_all_subjects(session)
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ })
|
|
|
|
|
+ ^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/templating.py", line 208, in TemplateResponse
|
|
|
|
|
+ template = self.get_template(name)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/starlette/templating.py", line 131, in get_template
|
|
|
|
|
+ return self.env.get_template(name)
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 1013, in get_template
|
|
|
|
|
+ return self._load_template(name, globals)
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 972, in _load_template
|
|
|
|
|
+ template = self.loader.load(self, name, self.make_globals(globals))
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/loaders.py", line 138, in load
|
|
|
|
|
+ code = environment.compile(source, name, filename)
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 768, in compile
|
|
|
|
|
+ self.handle_exception(source=source_hint)
|
|
|
|
|
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+ File "/root/miniconda3/lib/python3.13/site-packages/jinja2/environment.py", line 939, in handle_exception
|
|
|
|
|
+ raise rewrite_traceback_stack(source=source)
|
|
|
|
|
+ File "templates/subject_detail.html", line 158, in template
|
|
|
|
|
+ <span class="text-[10px] text-gray-400">点击{%'展开解析{% if txt.answer %} / 收起解析{% endif %}'%}</span>
|
|
|
|
|
+ ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+jinja2.exceptions.TemplateSyntaxError: tag name expected
|
|
|
|
|
+INFO: 127.0.0.1:35226 - "GET / HTTP/1.1" 200 OK
|