remotes/1693045480750635534/spooky-22
Aevann1 2021-09-24 01:30:50 +02:00
parent e12731a419
commit b8eb7a1440
1 changed files with 1 additions and 3 deletions

View File

@ -580,11 +580,9 @@ def thumbnail_thread(pid):
image = PILimage.open(BytesIO(x.content))
else:
db.close()
return
with open("image.webp", "wb") as file:
for chunk in image_req.iter_content(1024):
file.write(chunk)
@ -593,9 +591,9 @@ def thumbnail_thread(pid):
db.add(post)
db.commit()
db.close()
return
@app.post("/submit")
@limiter.limit("6/minute")
@is_not_banned