remotes/1693045480750635534/spooky-22
Aevann1 2021-07-22 22:24:54 +02:00
parent f7279c125e
commit a0b06cc6a6
2 changed files with 8 additions and 6 deletions

View File

@ -1087,9 +1087,10 @@ def delete_post_pid(pid, v):
file.write(chunk)
image = upload_from_file("resizing", "resizing", (100, 100))
u.profileurl = image
u.resized = True
g.db.add(u)
if image != None:
u.profileurl = image
u.resized = True
g.db.add(u)
print(f"2 {u.profileurl}")
return "", 204

View File

@ -41,9 +41,10 @@ def leaderboard(v):
file.write(chunk)
image = upload_from_file("resizing", "resizing", (100, 100))
u.profileurl = image
u.resized = True
g.db.add(u)
if image != None:
u.profileurl = image
u.resized = True
g.db.add(u)
print(f"2 {u.profileurl}")
return render_template("leaderboard.html", v=v, users1=users1, users2=users2)