Discrepancy: Questions are not grouped by topic despite README documentation #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The README states:
In
Database.kt, questions are seeded under SQL comment headers (e.g.-- ذكريات الطفولة,-- قصص المدرسة,-- قصص العيلة, etc.), but theQuestiontable does not contain atopicorcategorycolumn:And
QuestionRepository.getRandom3()uses:which selects three random questions across the entire table without ensuring topic distribution.
Suggested Fix
Add a
topiccolumn toQuestion, seed the topic names during insertion, and either: