mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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:
parent
8517822d43
commit
e77b652192
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user