checked for updates
This commit is contained in:
@@ -72,12 +72,16 @@ def upload():
|
||||
players = Player.query.order_by(Player.username).all()
|
||||
groups = Group.query.order_by(Group.name).all()
|
||||
|
||||
# Convert players and groups to dictionaries for JSON serialization
|
||||
players_data = [{'id': p.id, 'username': p.username, 'hostname': p.hostname} for p in players]
|
||||
groups_data = [{'id': g.id, 'name': g.name, 'description': g.description, 'player_count': len(g.players)} for g in groups]
|
||||
|
||||
return render_template(
|
||||
'content/upload.html',
|
||||
target_type=target_type,
|
||||
target_id=target_id,
|
||||
players=players,
|
||||
groups=groups,
|
||||
players=players_data,
|
||||
groups=groups_data,
|
||||
return_url=return_url
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user