sneed
This commit is contained in:
parent
e21259260c
commit
922aa24a7b
2 changed files with 8 additions and 6 deletions
|
@ -1087,9 +1087,10 @@ def delete_post_pid(pid, v):
|
||||||
file.write(chunk)
|
file.write(chunk)
|
||||||
|
|
||||||
image = upload_from_file("resizing", "resizing", (100, 100))
|
image = upload_from_file("resizing", "resizing", (100, 100))
|
||||||
u.profileurl = image
|
if image != None:
|
||||||
u.resized = True
|
u.profileurl = image
|
||||||
g.db.add(u)
|
u.resized = True
|
||||||
|
g.db.add(u)
|
||||||
print(f"2 {u.profileurl}")
|
print(f"2 {u.profileurl}")
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
|
@ -41,9 +41,10 @@ def leaderboard(v):
|
||||||
file.write(chunk)
|
file.write(chunk)
|
||||||
|
|
||||||
image = upload_from_file("resizing", "resizing", (100, 100))
|
image = upload_from_file("resizing", "resizing", (100, 100))
|
||||||
u.profileurl = image
|
if image != None:
|
||||||
u.resized = True
|
u.profileurl = image
|
||||||
g.db.add(u)
|
u.resized = True
|
||||||
|
g.db.add(u)
|
||||||
print(f"2 {u.profileurl}")
|
print(f"2 {u.profileurl}")
|
||||||
|
|
||||||
return render_template("leaderboard.html", v=v, users1=users1, users2=users2)
|
return render_template("leaderboard.html", v=v, users1=users1, users2=users2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue