quality update:

- calculator
- result screens
- some fixes
This commit is contained in:
2026-02-08 15:19:13 +01:00
parent aa01f4136d
commit d0bbf7bdce
39 changed files with 3323 additions and 69107 deletions
+32 -2
View File
@@ -1,5 +1,5 @@
"""
TV_APP V1.0.0 - Tournament and League Management System
TV_APP V1.0.1 - Tournament and League Management System
Flask web application for managing tournaments with multi-camera streaming
"""
@@ -1697,7 +1697,37 @@ def get_league():
return jsonify(league_state)
else:
return jsonify({'status': 'error', 'message': 'No league found'}), 404
@app.route('/api/dashboard/state', methods=['GET'])
def api_dashboard_state():
"""Get current dashboard state for polling updates (TV display sync)"""
tournament_state = load_tournament_state()
league_state = load_league_state()
response_data = {
'tournament_active': tournament_state is not None,
'current_round': None,
'total_rounds': None,
'league_active': league_state is not None,
'league_tournament': None,
'league_total': None,
'player_names': []
}
if tournament_state:
response_data['current_round'] = tournament_state.get('current_round', 1)
response_data['total_rounds'] = tournament_state.get('total_rounds', 1)
current_round_data = get_current_round_data()
if current_round_data:
response_data['player_names'] = [p['name'] for p in current_round_data.get('players', [])]
if league_state:
response_data['league_tournament'] = league_state.get('current_tournament', 1)
response_data['league_total'] = league_state.get('total_tournaments', 6)
return jsonify(response_data)
# Add this route to your Flask app (around line 850, with the other mobile routes)
@app.route('/mobile/remote')