Skip to content

Commit

Permalink
DEV: make Rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhnambiar committed May 7, 2019
1 parent c8ca1e1 commit 3b47c9a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/queries.rb
Expand Up @@ -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." "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": { "group-members-reply-count": {
"id": -13, "id": -13,
"name": "Group Members Reply Count", "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." "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 }.with_indifferent_access


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

0 comments on commit 3b47c9a

Please sign in to comment.