Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
1fc095d3
Commit
1fc095d3
authored
8 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Add flashcard count to /statistics
parent
6f94104c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+3
-0
3 additions, 0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
src/main/java/de/thm/arsnova/entities/Statistics.java
+10
-0
10 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Statistics.java
with
13 additions
and
0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
3
−
0
View file @
1fc095d3
...
@@ -1282,6 +1282,9 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
...
@@ -1282,6 +1282,9 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
case
"conceptQuestions"
:
case
"conceptQuestions"
:
stats
.
setConceptQuestions
(
stats
.
getConceptQuestions
()
+
value
);
stats
.
setConceptQuestions
(
stats
.
getConceptQuestions
()
+
value
);
break
;
break
;
case
"flashcards"
:
stats
.
setFlashcards
(
stats
.
getFlashcards
()
+
value
);
break
;
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/Statistics.java
+
10
−
0
View file @
1fc095d3
...
@@ -37,6 +37,7 @@ public class Statistics {
...
@@ -37,6 +37,7 @@ public class Statistics {
private
int
loggedinUsers
;
private
int
loggedinUsers
;
private
int
interposedQuestions
;
private
int
interposedQuestions
;
private
int
conceptQuestions
;
private
int
conceptQuestions
;
private
int
flashcards
;
@ApiModelProperty
(
required
=
true
,
value
=
"the number of answers"
)
@ApiModelProperty
(
required
=
true
,
value
=
"the number of answers"
)
public
int
getAnswers
()
{
public
int
getAnswers
()
{
...
@@ -120,6 +121,15 @@ public class Statistics {
...
@@ -120,6 +121,15 @@ public class Statistics {
this
.
interposedQuestions
=
interposedQuestions
;
this
.
interposedQuestions
=
interposedQuestions
;
}
}
@ApiModelProperty
(
required
=
true
,
value
=
"the number of flashcards"
)
public
int
getFlashcards
()
{
return
flashcards
;
}
public
void
setFlashcards
(
int
flashcards
)
{
this
.
flashcards
=
flashcards
;
}
@ApiModelProperty
(
required
=
true
,
value
=
"the number of creators"
)
@ApiModelProperty
(
required
=
true
,
value
=
"the number of creators"
)
public
int
getCreators
()
{
public
int
getCreators
()
{
return
creators
;
return
creators
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment