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