Files
hejyou_content_creation/app.py
admin e066ff7420 Migrate app.py from Directus to snakkimo API
- Replace all db_* routes with snakkimo API equivalents
- Stub out Llama AI functions (generate_details, generate_sentence) with 501 error
- Map field names: user_notes↔notes, picture↔picture_link, level↔difficulty_level, statement_de↔positive_sentence_de
- Use word_id as junction_id for M2M deletes (snakkimo uses resource IDs not junction row IDs)
- Normalize db-pictures response to include picture/blurhash/status/design
- Extract unique design values from pictures table for design-options endpoint
- Pair DELETE now also deletes linked statement and question
- FLAG: question words, distractor_words, objects.parent not supported in snakkimo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 15:31:48 +02:00

66 KiB