Skip to content
Snippets Groups Projects
Commit 3b5362e9 authored by Bernardo Chagas's avatar Bernardo Chagas
Browse files

alter statistics count_learning_objects to show only published lo's

parent 3c91c0fb
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ class V1::StatisticsController < ApplicationController ...@@ -7,7 +7,7 @@ class V1::StatisticsController < ApplicationController
private private
def count_learning_objects def count_learning_objects
LearningObject.all.count LearningObject.where('state = ?', LearningObject.states[:published]).count
end end
def month_publications def month_publications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment