mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
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:
parent
fac5b245d4
commit
b08004f778
13
rrs/views.py
13
rrs/views.py
|
@ -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'])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user