fix: import json, style maybe cells, fix Enter key in admin date form

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Greg 2026-05-10 10:10:20 +02:00
parent 78e5c1af0d
commit 86f17295f1
3 changed files with 4 additions and 2 deletions

1
app.py
View File

@ -1,3 +1,4 @@
import json
from datetime import datetime
from flask import Flask, render_template, request, jsonify
from flask_sqlalchemy import SQLAlchemy

View File

@ -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();

View File

@ -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;