mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49: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
446220e8c9
commit
c0a62bf06f
10
rrs/views.py
10
rrs/views.py
|
@ -137,13 +137,13 @@ class RecipeListView(ListView):
|
|||
current_date <= milestone.end_date:
|
||||
version = recipe.pv
|
||||
else:
|
||||
version = ''
|
||||
|
||||
rup = RecipeUpgrade.get_by_recipe_and_date(recipe,
|
||||
milestone.end_date)
|
||||
|
||||
if not rup is None:
|
||||
version = rup.version
|
||||
if rup is None: # Recipe don't exit in this Milestone
|
||||
continue
|
||||
|
||||
version = rup.version
|
||||
|
||||
recipe_upstream = RecipeUpstream.get_by_recipe_and_history(
|
||||
recipe, recipe_upstream_history)
|
||||
|
@ -176,7 +176,7 @@ class RecipeListView(ListView):
|
|||
recipe_list_item.maintainer_name = maintainer_name
|
||||
recipe_list.append(recipe_list_item)
|
||||
|
||||
self.recipe_list_count = len(recipe_list)
|
||||
self.recipe_list_count = len(recipe_list)
|
||||
|
||||
return recipe_list
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user