Bug repair: Cycle to maybe repaired
This commit is contained in:
parent
1409001266
commit
13578db09d
7
app.py
7
app.py
@ -59,7 +59,12 @@ def db_to_json():
|
||||
player = Player.query.get(att.player_id)
|
||||
colIdx = players.index(player.name) if player.name in players else len(players) # guest is last
|
||||
key = f"{date}|{colIdx}"
|
||||
attendance[key] = True if att.status == 'yes' else 'no'
|
||||
if att.status == 'yes':
|
||||
attendance[key] = True
|
||||
elif att.status == 'no':
|
||||
attendance[key] = 'no'
|
||||
elif att.status == 'maybe':
|
||||
attendance[key] = 'maybe'
|
||||
guest_names = {Date.query.get(g.date_id).date_str: g.name for g in GuestName.query.all()}
|
||||
return {
|
||||
"players": players,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user