Skip to content

Commit

Permalink
Correct trending query to select max_time vs min_time not min_time vs…
Browse files Browse the repository at this point in the history
… min_time
  • Loading branch information
dcramer committed Sep 20, 2012
1 parent d3eeca4 commit aa00f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/manager.py
Expand Up @@ -729,7 +729,7 @@ def get_accelerated(self, queryset=None, minutes=15):
%(before_where)s %(before_where)s
LEFT JOIN (SELECT a.group_id, SUM(a.times_seen) / 3.0 as accel LEFT JOIN (SELECT a.group_id, SUM(a.times_seen) / 3.0 as accel
FROM %(mcbm_tbl)s as a FROM %(mcbm_tbl)s as a
WHERE a.date BETWEEN now() - %(min_time)s WHERE a.date BETWEEN now() - %(max_time)s
AND now() - %(min_time)s AND now() - %(min_time)s
GROUP BY a.group_id) as z GROUP BY a.group_id) as z
ON z.group_id = %(mcbm_tbl)s.group_id ON z.group_id = %(mcbm_tbl)s.group_id
Expand Down

0 comments on commit aa00f44

Please sign in to comment.