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)
|
||||
|
||||
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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue