aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'rrs/views.py')
-rw-r--r--rrs/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rrs/views.py b/rrs/views.py
index 901907586c..8711fd323a 100644
--- a/rrs/views.py
+++ b/rrs/views.py
@@ -166,6 +166,7 @@ class Raw():
cur = connection.cursor()
cur.execute("""SELECT recipe_id, MAX(commit_date) AS date
FROM rrs_recipeupgrade
+ WHERE commit_date <= %s
GROUP BY recipe_id;
""", [date])
return Raw.dictfetchall(cur)