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:
Aníbal Limón 2015-07-08 11:43:08 -05:00 committed by Paul Eggleton
parent 887737027c
commit c64ec37699

View File

@ -117,10 +117,6 @@ def _get_recipe_list(milestone):
recipe_list = []
current_date = date.today()
for recipe in Recipe.objects.filter().order_by('pn'):
if current_date >= milestone.start_date and \
current_date <= milestone.end_date:
version = recipe.pv
else:
rup = RecipeUpgrade.get_by_recipe_and_date(recipe,
milestone.end_date)