updated to 4k images from pptx

This commit is contained in:
2025-08-01 10:23:38 +03:00
parent c8bbbebb48
commit 1326543418
9 changed files with 82 additions and 30 deletions

View File

@@ -130,7 +130,7 @@ def add_player(username, hostname, password, quickconnect_password, orientation=
log_player_created(username, hostname)
return new_player
def edit_player(player_id, username, hostname, password=None, quickconnect_password=None):
def edit_player(player_id, username, hostname, password=None, quickconnect_password=None, orientation=None):
"""
Edit an existing player's details.
"""
@@ -147,6 +147,9 @@ def edit_player(player_id, username, hostname, password=None, quickconnect_passw
if quickconnect_password:
player.quickconnect_password = bcrypt.generate_password_hash(quickconnect_password).decode('utf-8')
if orientation:
player.orientation = orientation
db.session.commit()
log_player_edited(username)
return player