diff --git a/app.py b/app.py index e2091f6..2adab5a 100644 --- a/app.py +++ b/app.py @@ -109,28 +109,7 @@ def post_a_post(post_key): # def post_a_file(): # pass - -### stolen -@app.route("/todo") -def page_todo(): - return render_template("page1.html") - -@app.route("/search", methods=["POST"]) -def search_todo(): - search_term = request.form.get("search") - - if not len(search_term): - return render_template("todo.html", host_id=docker_short_id, todos=[]) - - res_todos = [] - for todo in todos: - if search_term in todo["title"]: - res_todos.append(todo) - - return render_template("todo.html", host_id=docker_short_id, todos=res_todos) -### /stolen - if __name__ == "__main__": diff --git a/templates/board.html b/templates/board.html deleted file mode 100644 index c12d10d..0000000 --- a/templates/board.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -
-

Вы тут: /{{board_id}}

-
- - - - - -{% include 'posts.html' %} - -{% endblock content %} \ No newline at end of file diff --git a/templates/page1.html b/templates/page1.html deleted file mode 100644 index d383a52..0000000 --- a/templates/page1.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -
- -
- - Searching... -
- +dev 3 - - - - - - - - - - - - {% include 'todo.html' %} - -
-
-{% endblock content %} \ No newline at end of file diff --git a/templates/posts.html b/templates/posts.html deleted file mode 100644 index 69ca274..0000000 --- a/templates/posts.html +++ /dev/null @@ -1,75 +0,0 @@ -{% if board_threads|length>0 %} - {% for thread in board_threads %} -
-
- - - {{thread.name}} - - - 05/07/23 Срд 14:53:58 - - - - {{thread.post_num}} - 2 - - - - - - -
-
- - - - - - - - - -
-
- {% for pic in thread.pic_links %} - - - - {% endfor %} -
-
-
-
- >>15135633 (OP)
- - {{thread.txt}} -
- -
- {% endfor %} -{% endif %} \ No newline at end of file diff --git a/templates/todo.html b/templates/todo.html deleted file mode 100644 index 24ea075..0000000 --- a/templates/todo.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if todos|length>0 %} - {% for todo in todos %} - - {{todo.id}} - {{todo.title}} - - {% if todo.completed %} - Yes - {% else %} - No - {% endif %} - - - {% endfor %} -{% endif %} \ No newline at end of file