diff --git a/app.py b/app.py index d49ebb4..5fe106d 100644 --- a/app.py +++ b/app.py @@ -180,13 +180,13 @@ def post_to_post(post_key): @app.route("/send_dudes", methods=["POST"]) def upload_file(): + + #### TODO вынести в обычный метод отправки if request.method == "POST": uploaded_file = request.files["file"] - minioClient = Minio( - "static.guaranteedstruggle.host", - ) if uploaded_file: + minioClient = Minio( "static.guaranteedstruggle.host" ) bucket_name = "thread-pics" size = os.fstat(uploaded_file.fileno()).st_size diff --git a/templates/answer-post.html b/templates/answer-post.html index 46b1ee4..41ee36d 100644 --- a/templates/answer-post.html +++ b/templates/answer-post.html @@ -3,10 +3,17 @@
Создай то, о чем будут говорить многие. Ты отвечаешь: >>{{ target_post_id }} >> -
- - -
+
+
+ + +
+
+ + + +
+
@@ -15,14 +22,14 @@ type="submit" name="action" hx-post="/post_to_another_post/{{ target_post_id }}" hx-target="#neu-posts" - hx-include="[name='send_this_text']" + hx-include="[name='send_this_text'], [name='file']" > Отправить!! send
-
+