views.py: Show last updated date for all recipes

This changes the behavior of the last update column
and show the date for all the recipes, including the
up to date recipes.

[YOCTO #8018]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
This commit is contained in:
Mariano Lopez 2015-07-28 09:27:16 -05:00 committed by Paul Eggleton
parent fac5b245d4
commit b08004f778

View File

@ -196,14 +196,13 @@ def _get_recipe_list(milestone):
no_update_reason = recipe_upstream['no_update_reason'] no_update_reason = recipe_upstream['no_update_reason']
#Get how long the recipe hasn't been updated #Get how long the recipe hasn't been updated
if recipe_upstream['status'] != 'Y': recipe_last_updated = \
recipe_last_updated = \ recipe_last_updated_dict_all.get(recipe['id'])
recipe_last_updated_dict_all.get(recipe['id']) if recipe_last_updated:
if recipe_last_updated: recipe_date = recipe_last_updated['date']
recipe_date = recipe_last_updated['date'] outdated = recipe_date.date().isoformat()
outdated = recipe_date.date().isoformat()
else: else:
outdated = 'Up-to-date' outdated = ""
maintainer_name = maintainers_dict_all.get(recipe['id'], '') maintainer_name = maintainers_dict_all.get(recipe['id'], '')
recipe_list_item = RecipeList(recipe['id'], recipe['pn'], recipe['summary']) recipe_list_item = RecipeList(recipe['id'], recipe['pn'], recipe['summary'])