Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct trending query to select max_time vs min_time not min_time vs…

… min_time
  • Loading branch information...
commit aa00f44754d6feff173b86dab136add34d20728e 1 parent d3eeca4
@dcramer dcramer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/sentry/manager.py
View
2  src/sentry/manager.py
@@ -729,7 +729,7 @@ def get_accelerated(self, queryset=None, minutes=15):
%(before_where)s
LEFT JOIN (SELECT a.group_id, SUM(a.times_seen) / 3.0 as accel
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
GROUP BY a.group_id) as z
ON z.group_id = %(mcbm_tbl)s.group_id
Please sign in to comment.
Something went wrong with that request. Please try again.