This commit is contained in:
Aevann1 2021-07-21 17:47:02 +02:00
parent 0a4693c790
commit dd232eb9d2
3 changed files with 15 additions and 8 deletions

View file

@ -375,7 +375,7 @@ def thumbs(new_post):
for chunk in image_req.iter_content(1024):
file.write(chunk)
post.thumburl = upload_from_file(name, tempname, resize=(150, 100))
post.thumburl = upload_from_file(name, tempname, resize=(50, 50))
if post.thumburl: post.has_thumb = True
g.db.add(post)
g.db.commit()