How ultimatevirus/skydive-theorie works
Skydive-theorie is a Flask e-learning site for Dutch KNVvL A/B skydiving theory. Learners choose an exam or focused practice, answer stored or dynamically generated weather questions, and receive immediate scoring and topic feedback. The app also serves learning resources and contact/status pages, with optional access gating. The sampled app excerpt confirms routing and service imports but omits most handlers, so workflow edges beyond those explicitly documented are limited; METAR/TAF background refresh and persistence are represented where excerpts support them.
Main entry points: app.py Flask routes and sessions · db.py Database connections and sync · metar.py METAR retrieval and grading · taf.py TAF retrieval and grading
Components 19
Web application
- Flask routes and sessions
app.py - UI translations
translations.py
Study and assessment
- Exam and practice flow
app.py - Question selection
question_repository.py - Scoring and grouping
quiz.py - Learning resources
templates/learn.html
Weather exercises
- METAR exercise
app.py - METAR retrieval and grading
metar.py - TAF exercise
app.py - TAF retrieval and grading
taf.py
Support services
- Access gate
access_gate_service.py - Contact delivery and limits
contact_service.py - Background service runner
background_services.py - Service health monitor
system_status.py
Persistence
- SQLite database
data.db - Database connections and sync
db.py
Other components
- Learner
- KNMI services
- SMTP server
Connections 28
- Learner → Flask routes and sessions: requests pages
README.md - Flask routes and sessions → Access gate: checks access
app.py - Flask routes and sessions → Contact delivery and limits: uses contact service
app.py - Flask routes and sessions → Exam and practice flow: routes practice
README.md - Exam and practice flow → Question selection: selects questions
app.py - Question selection → Scoring and grouping: uses quiz helpers
question_repository.py - Flask routes and sessions → Scoring and grouping: scores attempts
app.py - Learner → Learning resources: reads resources
README.md - Flask routes and sessions → METAR exercise: routes METAR practice
README.md - METAR exercise → METAR retrieval and grading: gets and grades METAR
app.py - Flask routes and sessions → TAF exercise: routes TAF practice
app.py - TAF exercise → TAF retrieval and grading: gets and grades TAF
app.py - Background service runner → METAR retrieval and grading: starts refresh loop
background_services.py - Background service runner → TAF retrieval and grading: starts refresh loop
background_services.py - Background service runner → Service health monitor: starts monitoring
background_services.py - METAR retrieval and grading → KNMI services: fetches weather data
metar.py - TAF retrieval and grading → KNMI services: fetches forecast data
taf.py - Service health monitor → KNMI services: checks availability
system_status.py - Contact delivery and limits → SMTP server: sends messages
contact_service.py - Flask routes and sessions → UI translations: translates interface
app.py - Flask routes and sessions → Service health monitor: shows service status
app.py - Question selection → Database connections and sync: opens database connections
- METAR retrieval and grading → Database connections and sync: uses shared SQLite
metar.py - TAF retrieval and grading → Database connections and sync: uses shared SQLite
- Service health monitor → Database connections and sync: uses shared SQLite
system_status.py - Database connections and sync → SQLite database: reads and writes
db.py - Access gate → SQLite database: stores throttling
- Contact delivery and limits → SQLite database: stores usage limits