fixed bugs
This commit is contained in:
+31
-1
@@ -1,6 +1,36 @@
|
||||
# --- Backend (Python) ---
|
||||
.env
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
database/calendar.db
|
||||
database/calendar.db-journal
|
||||
.vscode
|
||||
.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*
|
||||
@@ -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):
|
||||
|
||||
+3
-2
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user