From 86f17295f1dd870c35355036de1aa2ecf01cd857 Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 10 May 2026 10:10:20 +0200 Subject: [PATCH] fix: import json, style maybe cells, fix Enter key in admin date form Co-Authored-By: Claude Sonnet 4.6 --- app.py | 1 + templates/admin.html | 2 +- templates/index.html | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index e8fe7b4..4032377 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,4 @@ +import json from datetime import datetime from flask import Flask, render_template, request, jsonify from flask_sqlalchemy import SQLAlchemy diff --git a/templates/admin.html b/templates/admin.html index 1386cfb..576f378 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -462,7 +462,7 @@ // Allow Enter key on start-date and weeks document.getElementById('start-date').addEventListener('keydown', e => { - if (e.key === 'Enter') previewDates(); + if (e.key === 'Enter') createSeason(); }); init(); diff --git a/templates/index.html b/templates/index.html index 1561d3e..1c6b4a6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,7 +23,8 @@ box-shadow: 0 0 0 2px #94897966; } .yes { background: #948979; font-weight: bold; color: #222831; } -.no { background: #393E46; color: #948979; font-weight: bold; } + .no { background: #393E46; color: #948979; font-weight: bold; } + .maybe { background: #4a3a00; font-weight: bold; color: #DFD0B8; } input[type="text"] { width: 90%; padding: 0.2em;