diff --git a/populate-scripts/insert-db.sql b/populate-scripts/insert-db.sql index 336a84f..dc0e6bc 100644 --- a/populate-scripts/insert-db.sql +++ b/populate-scripts/insert-db.sql @@ -13,9 +13,9 @@ INSERT INTO tasks (id, from_platform, task_type, name, description, external_url ( NULL, "PSHARPLAB", - "QUESTIONNAIRE", - "reward_mood", - "Reward Mood Display Slide", + "EXPERIMENTAL", + "SDMT", + "Symbol Digit Modalities Task", "", '{}' ); \ No newline at end of file diff --git a/populate-scripts/update/93-sdmt.sql b/populate-scripts/update/93-sdmt.sql new file mode 100644 index 0000000..1143497 --- /dev/null +++ b/populate-scripts/update/93-sdmt.sql @@ -0,0 +1,76 @@ + +-- Iowa Gambling Task +UPDATE tasks SET + from_platform = "PSHARPLAB", + task_type = "EXPERIMENTAL", + name = "SDMT", + description = "Symbol Digit Modalities Task. The participant needs to use a key that maps images to numbers. They must look at a grid of images, and input the associated numbers", + config = '{ + "taskConfig": {}, + "metadata": [ + { + "componentName": "SDMTCOMPONENT", + "componentConfig": { + "isPractice": true, + "maxResponseTime": 180000, + "numRows": 1, + "numnCols": 9, + "stimuliConfig": { + "type": "generated", + "stimuli": null + } + } + }, + { + "componentName": "SDMTCOMPONENT", + "componentConfig": { + "isPractice": false, + "maxResponseTime": 120000, + "numRows": 9, + "numnCols": 16, + "stimuliConfig": { + "type": "generated", + "stimuli": null + } + } + }, + { + "componentName": "DISPLAYCOMPONENT", + "componentConfig": { + "title": { + "en": "Congratulations!", + "fr": "Félicitations!" + }, + "sections": [ + { + "sectionType": "text", + "textContent": { + "en": "You finished the game successfully", + "fr": "Vous avez terminé le jeu avec succès" + } + }, + { + "sectionType": "text", + "textContent": { + "en": "Thank you for your participation", + "fr": "Merci pour votre participation" + } + }, + { + "sectionType": "text", + "textContent": { + "en": "Click \\"NEXT\\" to continue", + "fr": "Cliquez sur \\"NEXT\\" pour continuer" + } + } + ], + "buttons": { + "isStart": false, + "previousDisabled": true, + "nextDisabled": false + } + } + } + ] + }' +WHERE id = 93; \ No newline at end of file