[yocto] [rrs][PATCH 1/3] views.py: Show last updated date for all recipes

mariano.lopez at linux.intel.com mariano.lopez at linux.intel.com
Tue Jul 28 07:27:16 PDT 2015


From: Mariano Lopez <mariano.lopez at linux.intel.com>

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 at linux.intel.com>
---
 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'])
-- 
1.9.1




More information about the yocto mailing list