mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-07-19 19:15:55 +00:00
Update pfp preview on file uplaod
This commit is contained in:
parent
193c7d9d07
commit
5307946ce6
6 changed files with 53 additions and 28 deletions
|
@ -1,5 +1,3 @@
|
|||
from random import randint
|
||||
|
||||
from flask import Flask, render_template, abort
|
||||
from flask_assets import Bundle
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
@ -53,8 +51,6 @@ def error_page(err):
|
|||
abort(500)
|
||||
|
||||
return (
|
||||
render_template(
|
||||
"error.html", error=err.code, msg=err.description, image=str(randint(1, 3))
|
||||
),
|
||||
render_template("error.html", error=err.code, msg=err.description),
|
||||
err.code,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue