This commit is contained in:
Aevann1 2021-07-30 11:34:00 +02:00
parent f4064461d5
commit be442491f7
4 changed files with 32 additions and 69 deletions

View file

@ -533,7 +533,7 @@ def thumbs(new_post):
for chunk in image_req.iter_content(1024):
file.write(chunk)
post.thumburl = upload_from_file("image.gif", (100, 100))
post.thumburl = upload_file(resize=(100, 100))
g.db.add(post)
g.db.commit()