feat: initialize attendance data structure and update data file path
This commit is contained in:
parent
e0c1bbe3a2
commit
6aef18e9eb
2
app.py
2
app.py
@ -3,7 +3,7 @@ import json
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
DATA_FILE = 'attendance_data.json'
|
DATA_FILE = 'data/attendance_data.json'
|
||||||
|
|
||||||
# Default player names
|
# Default player names
|
||||||
DEFAULT_PLAYERS = [
|
DEFAULT_PLAYERS = [
|
||||||
|
|||||||
21
data/attendance_data.json
Normal file
21
data/attendance_data.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user