Skip to content
Snippets Groups Projects
Commit 1fc095d3 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Add flashcard count to /statistics

parent 6f94104c
Branches
Tags
No related merge requests found
...@@ -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;
} }
} }
} }
......
...@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment