mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs: Recipes don't display if don't exit in Milestone
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
3a39caa055
commit
4be31d683e
10
rrs/views.py
10
rrs/views.py
|
@ -137,13 +137,13 @@ class RecipeListView(ListView):
|
||||||
current_date <= milestone.end_date:
|
current_date <= milestone.end_date:
|
||||||
version = recipe.pv
|
version = recipe.pv
|
||||||
else:
|
else:
|
||||||
version = ''
|
|
||||||
|
|
||||||
rup = RecipeUpgrade.get_by_recipe_and_date(recipe,
|
rup = RecipeUpgrade.get_by_recipe_and_date(recipe,
|
||||||
milestone.end_date)
|
milestone.end_date)
|
||||||
|
|
||||||
if not rup is None:
|
if rup is None: # Recipe don't exit in this Milestone
|
||||||
version = rup.version
|
continue
|
||||||
|
|
||||||
|
version = rup.version
|
||||||
|
|
||||||
recipe_upstream = RecipeUpstream.get_by_recipe_and_history(
|
recipe_upstream = RecipeUpstream.get_by_recipe_and_history(
|
||||||
recipe, recipe_upstream_history)
|
recipe, recipe_upstream_history)
|
||||||
|
@ -176,7 +176,7 @@ class RecipeListView(ListView):
|
||||||
recipe_list_item.maintainer_name = maintainer_name
|
recipe_list_item.maintainer_name = maintainer_name
|
||||||
recipe_list.append(recipe_list_item)
|
recipe_list.append(recipe_list_item)
|
||||||
|
|
||||||
self.recipe_list_count = len(recipe_list)
|
self.recipe_list_count = len(recipe_list)
|
||||||
|
|
||||||
return recipe_list
|
return recipe_list
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user