2.0.0 Alpha: Data Refinery
This commit is contained in:
+5
-7
@@ -67,14 +67,12 @@ def api_search():
|
||||
|
||||
@bp.route('/api/roster', methods=['GET', 'POST'])
|
||||
def api_roster():
|
||||
# Assume single team mode, always operating on ID=1 or the first lineup
|
||||
lineups = WebService.get_lineups()
|
||||
if not lineups:
|
||||
# Auto-create default team if none exists
|
||||
target_team = WebService.get_active_lineup()
|
||||
if not target_team:
|
||||
WebService.save_lineup("My Team", "Default Roster", [])
|
||||
lineups = WebService.get_lineups()
|
||||
|
||||
target_team = dict(lineups[0]) # Get the latest one
|
||||
target_team = WebService.get_active_lineup()
|
||||
|
||||
target_team = dict(target_team)
|
||||
|
||||
if request.method == 'POST':
|
||||
# Admin Check
|
||||
|
||||
Reference in New Issue
Block a user