master
Aevann1 2021-07-21 04:05:54 +02:00
parent 00f6b92ea2
commit 5890f8fdb1
2 changed files with 1 additions and 2 deletions

View File

@ -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"]) @app.route("/api/v1/listing", methods=["GET"])
@auth_desired @auth_desired
def front_all(v): 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") if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
page = int(request.args.get("page") or 1) page = int(request.args.get("page") or 1)

View File

@ -375,7 +375,7 @@ def thumbs(new_post):
for chunk in image_req.iter_content(1024): for chunk in image_req.iter_content(1024):
file.write(chunk) 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 if post.thumburl: post.has_thumb = True
g.db.add(post) g.db.add(post)
g.db.commit() g.db.commit()