Fixed join of tables in answerview

This commit is contained in:
BroodjeAap 2020-11-09 20:14:54 +01:00
parent c17f5fd568
commit 50f64ec4e8

View file

@ -35,9 +35,10 @@ class PracticeDatabase {
PracticeSession.type as type, PracticeSession.type as type,
PracticeAnswer.question as question, PracticeAnswer.question as question,
PracticeAnswer.answer as answer, PracticeAnswer.answer as answer,
PracticeAnswer.correct as correct,
PracticeAnswer.time as time PracticeAnswer.time as time
FROM PracticeSession FROM PracticeSession
INNER JOIN PracticeAnswer on PracticeSession.id = PracticeAnswer.id; INNER JOIN PracticeAnswer on PracticeSession.id = PracticeAnswer.sessionId;
'''); ''');
} }