aboutsummaryrefslogtreecommitdiffstats
path: root/rrs
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-03-20 16:37:19 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commite77b6521927577a1fdad17d19e8025739b848850 (patch)
tree8b2180798bb107e20af9902fef12cdd14f0b4940 /rrs
parent8517822d4338a28926a59f3b5902643e24ff8826 (diff)
downloadopenembedded-core-contrib-e77b6521927577a1fdad17d19e8025739b848850.tar.gz
rrs/views: fix SQL parameter in get_reup_by_last_updated()
We were passing in a parameter value but not using that in the query. Add a WHERE clause to fix that. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs')
-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)