Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

115 sdmt task #116

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading