Skip to content

Commit

Permalink
dashboard sql exception (publiclab#8203)
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavsethi authored and wichanart committed Oct 26, 2021
1 parent e5f89ff commit 51b2ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 51b2ee0

Please sign in to comment.