Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
kus-admin
Commits
01fc4a3c
Commit
01fc4a3c
authored
Jul 05, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grh
parent
178b3c5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
quiz.js
src/api/quiz.js
+3
-2
No files found.
src/api/quiz.js
View file @
01fc4a3c
...
@@ -143,9 +143,10 @@ module.exports = {
...
@@ -143,9 +143,10 @@ module.exports = {
}
}
}
}
maxChain
=
Math
.
max
(
maxChain
,
curChain
);
maxChain
=
Math
.
max
(
maxChain
,
curChain
);
return
await
asyncPool
(
'UPDATE quiz_attempt SET'
+
return
await
asyncPool
(
'UPDATE quiz_attempt SET '
+
'count_correct=?, max_chain=?, completed=?, completed_at=?'
+
'count_correct=?, max_chain=?, completed=?, completed_at=?'
+
' WHERE attempt_id=?'
,
[
countCorrect
,
maxChain
,
1
,
new
Date
(),
q
[
0
].
attempt_id
])
' WHERE attempt_id=?
;
'
,
[
countCorrect
,
maxChain
,
1
,
new
Date
(),
q
[
0
].
attempt_id
])
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment