resize
This commit is contained in:
parent
f8744da4c2
commit
c604bd0388
3 changed files with 16 additions and 17 deletions
|
@ -535,7 +535,7 @@ def thumbs(new_post):
|
|||
for chunk in image_req.iter_content(1024):
|
||||
file.write(chunk)
|
||||
|
||||
post.thumburl = upload_file(resize=(100, 100))
|
||||
post.thumburl = upload_file(resize=True)
|
||||
g.db.add(post)
|
||||
g.db.commit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue