Skip to content
Snippets Groups Projects
Commit 8dbd71f0 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Fix for #14551: Add concept questions to statistics

parent 5955a4b0
No related merge requests found
......@@ -1111,6 +1111,9 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
case "interposedQuestions":
stats.setInterposedQuestions(stats.getInterposedQuestions() + value);
break;
case "conceptQuestions":
stats.setConceptQuestions(stats.getConceptQuestions() + value);
break;
}
}
}
......
......@@ -28,6 +28,7 @@ public class Statistics {
private int activeUsers;
private int loggedinUsers;
private int interposedQuestions;
private int conceptQuestions;
public int getAnswers() {
return answers;
......@@ -109,6 +110,14 @@ public class Statistics {
this.creators = creators;
}
public int getConceptQuestions() {
return conceptQuestions;
}
public void setConceptQuestions(int conceptQuestions) {
this.conceptQuestions = conceptQuestions;
}
@Override
public int hashCode() {
return (this.getClass().getName()
......@@ -120,6 +129,7 @@ public class Statistics {
+ preparationQuestions
+ interposedQuestions
+ loggedinUsers
+ conceptQuestions
).hashCode();
}
......
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