Skip to content

Commit

Permalink
115 sdmt task (#116)
Browse files Browse the repository at this point in the history
* feat: add initial sdmt task to scripts

* feat: finished sdmt task
  • Loading branch information
nicoalee authored Jun 27, 2024
1 parent 8c7443d commit 0675fa2
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 3 deletions.
6 changes: 3 additions & 3 deletions populate-scripts/insert-db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"",
'{}'
);
76 changes: 76 additions & 0 deletions populate-scripts/update/93-sdmt.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 0675fa2

Please sign in to comment.