mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/views.py: RecipeListView always use recipes from history.
If recipe don't exist in history means that don't need to be displayed. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
44416d5e50
commit
87bef7fed5
|
@ -139,20 +139,13 @@ def _get_recipe_list(milestone):
|
||||||
maintainers_dict_all = {}
|
maintainers_dict_all = {}
|
||||||
current_date = date.today()
|
current_date = date.today()
|
||||||
|
|
||||||
# If the is the curent milestone take the data recipes table
|
|
||||||
# otherwise take it from recipe upgrade
|
|
||||||
if current_date >= milestone.start_date and \
|
|
||||||
current_date <= milestone.end_date:
|
|
||||||
recipes = Raw.get_re_all()
|
|
||||||
else:
|
|
||||||
recipes = Raw.get_reupg_by_date(milestone.end_date)
|
recipes = Raw.get_reupg_by_date(milestone.end_date)
|
||||||
|
|
||||||
for i,re in enumerate(recipes):
|
for i,re in enumerate(recipes):
|
||||||
if re.has_key('pv'):
|
if re.has_key('pv'):
|
||||||
recipes[i]['version'] = re['pv']
|
recipes[i]['version'] = re['pv']
|
||||||
recipes_ids.append(re['id'])
|
recipes_ids.append(re['id'])
|
||||||
|
|
||||||
if recipe_upstream_history:
|
if recipes and recipe_upstream_history:
|
||||||
recipe_upstream_all = Raw.get_reup_by_recipes_and_date(
|
recipe_upstream_all = Raw.get_reup_by_recipes_and_date(
|
||||||
recipes_ids, recipe_upstream_history.id)
|
recipes_ids, recipe_upstream_history.id)
|
||||||
recipe_last_updated = Raw.get_reup_by_last_updated(
|
recipe_last_updated = Raw.get_reup_by_last_updated(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user