feat(bisaya): update sentence-chain prompt for clarity in grammar exercises
Some checks failed
Deploy to production / deploy (push) Failing after 54s
Some checks failed
Deploy to production / deploy (push) Failing after 54s
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The automatic sentence-chain generator used one fixed directions-question
|
||||||
|
* prompt for every multi-part cue. It therefore contradicted the word cards
|
||||||
|
* in unrelated lessons such as "Spielen & Freizeit".
|
||||||
|
*/
|
||||||
|
module.exports = {
|
||||||
|
async up(queryInterface) {
|
||||||
|
await queryInterface.sequelize.query(`
|
||||||
|
UPDATE community.vocab_grammar_exercise
|
||||||
|
SET question_data = jsonb_set(
|
||||||
|
question_data,
|
||||||
|
'{question}',
|
||||||
|
'"Ordne die Wortkarten zu den kurzen Formulierungen aus der Aufgabe."'::jsonb
|
||||||
|
)
|
||||||
|
WHERE question_data->>'type' = 'sentence_building'
|
||||||
|
AND question_data->>'question' = 'Ordne die Wortkarten als drei Fragen: Wohin geht die Person? Wann geht sie los? Mit wem ist sie unterwegs?';
|
||||||
|
`);
|
||||||
|
},
|
||||||
|
|
||||||
|
async down() {
|
||||||
|
// The previous prompt was incorrect and must not be restored.
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -688,7 +688,7 @@ function buildTaskSentenceExercise(lesson, didactics, pattern) {
|
|||||||
questionData: {
|
questionData: {
|
||||||
...sentenceExercise.questionData,
|
...sentenceExercise.questionData,
|
||||||
question: sentenceTarget === scenarioCue
|
question: sentenceTarget === scenarioCue
|
||||||
? 'Ordne die Wortkarten als drei Fragen: Wohin geht die Person? Wann geht sie los? Mit wem ist sie unterwegs?'
|
? 'Ordne die Wortkarten zu den kurzen Formulierungen aus der Aufgabe.'
|
||||||
: sentenceExercise.questionData.question
|
: sentenceExercise.questionData.question
|
||||||
},
|
},
|
||||||
instruction: practicalTask?.text
|
instruction: practicalTask?.text
|
||||||
|
|||||||
Reference in New Issue
Block a user