From b08004f778de5b7b794b8626c3b8038effcf85c9 Mon Sep 17 00:00:00 2001 From: Mariano Lopez Date: Tue, 28 Jul 2015 09:27:16 -0500 Subject: [PATCH] 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 --- rrs/views.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/rrs/views.py b/rrs/views.py index ee68254..e446c0d 100644 --- a/rrs/views.py +++ b/rrs/views.py @@ -196,14 +196,13 @@ def _get_recipe_list(milestone): no_update_reason = recipe_upstream['no_update_reason'] #Get how long the recipe hasn't been updated - if recipe_upstream['status'] != 'Y': - recipe_last_updated = \ - recipe_last_updated_dict_all.get(recipe['id']) - if recipe_last_updated: - recipe_date = recipe_last_updated['date'] - outdated = recipe_date.date().isoformat() + recipe_last_updated = \ + recipe_last_updated_dict_all.get(recipe['id']) + if recipe_last_updated: + recipe_date = recipe_last_updated['date'] + outdated = recipe_date.date().isoformat() else: - outdated = 'Up-to-date' + outdated = "" maintainer_name = maintainers_dict_all.get(recipe['id'], '') recipe_list_item = RecipeList(recipe['id'], recipe['pn'], recipe['summary'])