diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..2c23931 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/templates/index.html b/static/templates/index.html index e2ddde3..fb69257 100644 --- a/static/templates/index.html +++ b/static/templates/index.html @@ -1,10 +1,9 @@ - Login + audio resive -

Login

diff --git a/static/templates/log.html b/static/templates/log.html index b8f3e14..7a5459f 100644 --- a/static/templates/log.html +++ b/static/templates/log.html @@ -4,41 +4,27 @@ + audio resive

My Audio Files

- {% for lo in log %} - -
- +
- -
-
{{ lo.title }}
- {% if lo.text %} -
{% for line in lo.text %} {{ line }}
{% endfor %}
- {% else %} -
No text file found.
- {% endif %} -
-
- {% endfor %} -
\ No newline at end of file diff --git a/static/templates/logs.html b/static/templates/logs.html index 68f58a1..f0bdf0d 100644 --- a/static/templates/logs.html +++ b/static/templates/logs.html @@ -1,7 +1,7 @@ - Logs + audio resive diff --git a/test.py b/test.py index 6047bd2..eb529c3 100644 --- a/test.py +++ b/test.py @@ -23,7 +23,7 @@ async def login(password: str = Form(...)): response = responses.RedirectResponse(url="/logs", status_code=303) response.set_cookie(key="logged_in", value="true") return response - return {"message": "Invalid password"} + return {"message": "Неправильный пароль"} @app.get("/logs", response_class=responses.HTMLResponse) @@ -31,7 +31,7 @@ async def logs(request: Request, logged_in: bool = Depends(is_logged_in)): if logged_in: return templates.TemplateResponse("logs.html", {"request": request, "logs": get_logs()}) else: - responses.RedirectResponse(url="/login", status_code=303) + return responses.RedirectResponse(url="/", status_code=303) @app.get("/logs/{log_id}", response_class=responses.HTMLResponse) diff --git a/Презентация.pdf b/Презентация.pdf new file mode 100644 index 0000000..a541a14 Binary files /dev/null and b/Презентация.pdf differ