From 8fe812e8e6f0271ac6db6a7ad40482aa8c1211c3 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 19 Aug 2026 09:38:31 +0200 Subject: [PATCH] fixed bugs --- .gitignore | 32 +++++++++++++++++++- backend/event_signups.py | 2 +- backend/main.py | 5 ++-- frontend/index.html | 0 frontend/style.css | 63 ---------------------------------------- 5 files changed, 35 insertions(+), 67 deletions(-) delete mode 100644 frontend/index.html delete mode 100644 frontend/style.css diff --git a/.gitignore b/.gitignore index 2df2dcf..537a84e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,36 @@ +# --- Backend (Python) --- .env __pycache__/ *.py[cod] database/calendar.db database/calendar.db-journal -.vscode \ No newline at end of file +.vscode +.venv/ + +# --- Frontend (Next.js / v0) --- +node_modules/ +.next/ +out/ +.vercel/ +*.tsbuildinfo +next-env.d.ts + +# leftover v0/dev artifacts +dump.txt +*.old-mock +*.old-mock.tsx + +# env files +.env*.local +.env.production +.env.development + +# OS / editor +.DS_Store +Thumbs.db + +# logs +npm-debug.log* +pnpm-debug.log* +yarn-debug.log* +yarn-error.log* \ No newline at end of file diff --git a/backend/event_signups.py b/backend/event_signups.py index 6ca8d6d..5c07ae1 100644 --- a/backend/event_signups.py +++ b/backend/event_signups.py @@ -1,4 +1,4 @@ -from database import execute, fetch_one +from database import execute, fetch_one, fetch_all def respond_to_event(event_id, user_id, status): diff --git a/backend/main.py b/backend/main.py index 7568201..6fc09a7 100644 --- a/backend/main.py +++ b/backend/main.py @@ -37,6 +37,7 @@ from permissions import ( has_role, whoami, get_role, + get_member_role, ) from rooms import ( @@ -339,8 +340,8 @@ def api_update_member_role( data: MemberRoleUpdate, current_user: int = Depends(get_current_user), ): - current_role = get_role(room_id, current_user) - target_role = get_role(room_id, user_id) + current_role = get_member_role(room_id, current_user) + target_role = get_member_role(room_id, user_id) if current_role is None: raise HTTPException( diff --git a/frontend/index.html b/frontend/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/frontend/style.css b/frontend/style.css deleted file mode 100644 index e07ae7f..0000000 --- a/frontend/style.css +++ /dev/null @@ -1,63 +0,0 @@ - -* { - box-sizing: border-box; - margin: 0; - padding: 0; -} - -body { - font-family: system-ui, sans-serif; - background-color: #3d3846; - color: #f5f5f5; - min-height: 100vh; -} - -.container { - width: min(1100px, 90%); - margin: 0 auto; -} - -h1 { - font-size: 3rem; - line-height: 1.1; -} - -p { - color: #a9adb7; - line-height: 1.6; -} - -.button { - display: inline-block; - padding: 0.8rem 1.2rem; - border-radius: 8px; - text-decoration: none; - font-weight: 600; - background: #ffffff; - color: #111; -} - -.button:hover { - opacity: 0.85; -} - -.hero { - min-height: 100vh; - display: flex; - align-items: center; -} - -.hero-content { - max-width: 650px; -} - -.hero-content p { - margin-top: 1rem; - max-width: 500px; -} - -.hero-actions { - display: flex; - gap: 1rem; - margin-top: 2rem; -} \ No newline at end of file