we can send now?
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not
2023-07-20 16:18:33 +10:00
parent 5790ea301c
commit 8415845488
2 changed files with 17 additions and 10 deletions

6
app.py
View File

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