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
Branches
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ class V1::StatisticsController < ApplicationController
private
def count_learning_objects
LearningObject.all.count
LearningObject.where('state = ?', LearningObject.states[:published]).count
end
def month_publications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment