feat: initialize attendance data structure and update data file path

This commit is contained in:
Greg 2025-05-10 11:29:08 +02:00
parent e0c1bbe3a2
commit 6aef18e9eb
2 changed files with 22 additions and 1 deletions

2
app.py
View File

@ -3,7 +3,7 @@ import json
import os
app = Flask(__name__)
DATA_FILE = 'attendance_data.json'
DATA_FILE = 'data/attendance_data.json'
# Default player names
DEFAULT_PLAYERS = [

21
data/attendance_data.json Normal file
View File

@ -0,0 +1,21 @@
{
"attendance": {
"08/05/25|8": true,
"08/05/25|4": true
},
"dates": [
"08/05/25",
"5=5"
],
"guest": "Guest",
"players": [
"Alice",
"Bob",
"Charlie",
"David",
"Eve",
"Frank",
"Grace",
"Hannah"
]
}