How colinchristianson/hold works
Hold is a Flask office-hours booking board: students register or sign in, browse and hold TA slots, then view, cancel, or transfer bookings; TAs post slots and review their schedules. The route handlers in app.py orchestrate these workflows, render Jinja pages, and read or write SQLite through db.py. The README documents device handoff via a session link. The excerpts show only parts of app.py, so unsampled route relationships are included only where documented by the README.
Main entry points: db.py SQLite Access · app.py Account Routes · mine.html My Bookings Page · seed.py Demo Data Seed
Components 17
Accounts & Sessions
- Account Routes
app.py - Session Handoff
app.py
Slots & Bookings
- Public Slot Board
app.py - TA Slot Management
app.py - Booking Actions
app.py - Booking Details
app.py
Persistence
- SQLite Access
db.py - Office Hours Data
data - Demo Data Seed
seed.py
Web Views
- Account Pages
templates/login.html - Registration Page
templates/register.html - Public Board Page
templates/home.html - New Slot Page
templates/new_slot.html - Booking Page
templates/booking.html - My Bookings Page
templates/mine.html - TA Schedule Page
templates/ta_schedule.html
Other components
- Students and TAs
Connections 26
- Students and TAs → Account Routes: registers or signs in
README.md - Account Routes → SQLite Access: checks or creates accounts
app.py - Account Routes → Account Pages: renders sign-in
app.py - Account Routes → Registration Page: renders registration
README.md - Students and TAs → Session Handoff: returns with cookie or link
README.md - Session Handoff → SQLite Access: looks up session
app.py - Session Handoff → Office Hours Data: persists session
app.py - Students and TAs → Public Slot Board: browses slots
README.md - Public Slot Board → SQLite Access: queries upcoming slots
app.py - Public Slot Board → Public Board Page: renders board
README.md - Students and TAs → TA Slot Management: posts slots
README.md - TA Slot Management → SQLite Access: writes slots
app.py - TA Slot Management → New Slot Page: renders slot form
app.py - Students and TAs → Booking Actions: holds, cancels, transfers
README.md - Booking Actions → SQLite Access: changes bookings
app.py - Students and TAs → Booking Details: opens booking detail
README.md - Booking Details → SQLite Access: queries booking
app.py - Booking Details → Booking Page: shows booking and note
README.md - Students and TAs → My Bookings Page: views own bookings
README.md - My Bookings Page → SQLite Access: loads bookings
- Students and TAs → TA Schedule Page: reviews booked slots
README.md - TA Schedule Page → SQLite Access: loads TA schedule
- SQLite Access → Office Hours Data: reads and writes
db.py - Demo Data Seed → SQLite Access: creates demo records
seed.py - Account Routes → Demo Data Seed: initializes demo data
app.py - My Bookings Page → Public Board Page: offers handoff link
README.md