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>
This commit is contained in:
Paul Eggleton 2018-03-20 16:37:19 +13:00
parent 8517822d43
commit e77b652192

View File

@ -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)