forked from MarseyWorld/MarseyWorld
sneed
parent
00f6b92ea2
commit
5890f8fdb1
|
@ -179,7 +179,6 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words=''
|
|||
@app.route("/api/v1/listing", methods=["GET"])
|
||||
@auth_desired
|
||||
def front_all(v):
|
||||
return "Upgrading server, be back in 10 minutes"
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
page = int(request.args.get("page") or 1)
|
||||
|
|
|
@ -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=(375, 227))
|
||||
post.thumburl = upload_from_file(name, tempname, resize=(150, 100))
|
||||
if post.thumburl: post.has_thumb = True
|
||||
g.db.add(post)
|
||||
g.db.commit()
|
||||
|
|
Loading…
Reference in New Issue