mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/views.py: RecipeList always use recipe from Recipe upgrades.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
887737027c
commit
c64ec37699
14
rrs/views.py
14
rrs/views.py
|
@ -117,17 +117,13 @@ def _get_recipe_list(milestone):
|
||||||
recipe_list = []
|
recipe_list = []
|
||||||
current_date = date.today()
|
current_date = date.today()
|
||||||
for recipe in Recipe.objects.filter().order_by('pn'):
|
for recipe in Recipe.objects.filter().order_by('pn'):
|
||||||
if current_date >= milestone.start_date and \
|
rup = RecipeUpgrade.get_by_recipe_and_date(recipe,
|
||||||
current_date <= milestone.end_date:
|
milestone.end_date)
|
||||||
version = recipe.pv
|
|
||||||
else:
|
|
||||||
rup = RecipeUpgrade.get_by_recipe_and_date(recipe,
|
|
||||||
milestone.end_date)
|
|
||||||
|
|
||||||
if rup is None: # Recipe don't exit in this Milestone
|
if rup is None: # Recipe don't exit in this Milestone
|
||||||
continue
|
continue
|
||||||
|
|
||||||
version = rup.version
|
version = rup.version
|
||||||
|
|
||||||
upstream_version = ''
|
upstream_version = ''
|
||||||
upstream_status = ''
|
upstream_status = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user