From 6aef18e9ebe7ca3ffd2c6e6bee00085684b67be0 Mon Sep 17 00:00:00 2001 From: Greg Date: Sat, 10 May 2025 11:29:08 +0200 Subject: [PATCH] feat: initialize attendance data structure and update data file path --- app.py | 2 +- data/attendance_data.json | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 data/attendance_data.json diff --git a/app.py b/app.py index e74d51b..f07d47e 100644 --- a/app.py +++ b/app.py @@ -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 = [ diff --git a/data/attendance_data.json b/data/attendance_data.json new file mode 100644 index 0000000..88b9313 --- /dev/null +++ b/data/attendance_data.json @@ -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" + ] +}