Skip to content
Permalink
Browse files

DEV: make Rubocop happy

  • Loading branch information...
rishabhnambiar committed May 7, 2019
1 parent c8ca1e1 commit 3b47c9a597b697d983300599ed7149c4f035d6a1
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/queries.rb
@@ -70,9 +70,9 @@ def self.default
"description": "The query requires a ‘notification_level’ parameter. Use 0 for muted, 1 for regular, 2 for tracked and 3 for watched topics."
},
"group-members-reply-count": {
"id": -13,
"name": "Group Members Reply Count",
"description": "Number of replies by members of a group over a given time period. Requires 'group_name', 'start_date', and 'end_date' parameters. Dates need to be in the form 'yyyy-mm-dd'. Accepts an 'include_pms' parameter."
"id": -13,
"name": "Group Members Reply Count",
"description": "Number of replies by members of a group over a given time period. Requires 'group_name', 'start_date', and 'end_date' parameters. Dates need to be in the form 'yyyy-mm-dd'. Accepts an 'include_pms' parameter."
}
}.with_indifferent_access

@@ -384,7 +384,7 @@ def self.default
-- date :end_date
-- string :group_name
-- boolean :include_pms = false
WITH target_users AS (
SELECT
u.id AS user_id
@@ -410,7 +410,7 @@ def self.default
AND p.created_at::date <= :end_date
AND p.post_number > 1
)
SELECT
tu.user_id,
COALESCE(COUNT(tp.id), 0) AS reply_count

0 comments on commit 3b47c9a

Please sign in to comment.
You can’t perform that action at this time.