Skip to content

Commit

Permalink
Merge pull request #84 from MatsMoll/develop
Browse files Browse the repository at this point in the history
[AASA][PracticeSession] Specify task type used in practice session
  • Loading branch information
MatsMoll authored Oct 27, 2020
2 parents f3bcfed + d8d5b96 commit 2145e92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Public/.well-known/apple-app-site-association
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"applinks": {
"apps": [],
"details": [
{
"appID": "M276UPEHPQ.no.mem.kognita.Kognita",
"paths": ["*"]
}
]
},
"webcredentials": ["M276UPEHPQ.no.mem.kognita.Kognita"]
}
6 changes: 3 additions & 3 deletions Public/assets/js/practice-session-create.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
function startPracticeSessionWithTopicIDs(topicIds, subjectId) {

let taskGoal = 10;
function startPracticeSessionWithTopicIDs(topicIds, subjectId, useTypingTasks = true, useMultipleChoiceTasks = true, taskGoal = 5) {

let data = JSON.stringify({
"topicIDs" : topicIds,
"numberOfTaskGoal" : taskGoal,
"useTypingTasks" : useTypingTasks,
"useMultipleChoiceTasks" : useMultipleChoiceTasks
});

let url = "/api/subjects/" + subjectId + "/practice-sessions/start";
Expand Down

0 comments on commit 2145e92

Please sign in to comment.