From 51b2ee006147547bdcd00ddb41fc9987c6c96d98 Mon Sep 17 00:00:00 2001 From: Keshav Sethi <36025262+keshavsethi@users.noreply.github.com> Date: Fri, 31 Jul 2020 21:15:21 +0530 Subject: [PATCH] dashboard sql exception (#8203) --- app/models/tag.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tag.rb b/app/models/tag.rb index c5aa41f254..313634709a 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -334,7 +334,7 @@ def followers_who_dont_follow_tags(tags) # https://github.com/publiclab/plots2/pull/4266 def self.trending(limit = 5, start_date = DateTime.now - 1.month, end_date = DateTime.now) - Tag.select('term_data.name, plots.term_data.count') # ONLY_FULL_GROUP_BY, issue #8152 & #3120 + Tag.select('term_data.name, term_data.count') # ONLY_FULL_GROUP_BY, issue #8152 & #3120 .joins(:node_tag, :node) .where('node.status = ?', 1) .where('node.created > ?', start_date.to_i)