diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-07-14 16:23:00 -0500 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:52 +1200 |
commit | 6added950fe2b6aeab8a3e51dfda97b41a3ca36b (patch) | |
tree | 1906e5476bf9a32f3c9b25b42317fe1c5d6ca23a | |
parent | ac50ffd82e82074e53e598c15cf01a30e4a120c9 (diff) | |
download | openembedded-core-contrib-6added950fe2b6aeab8a3e51dfda97b41a3ca36b.tar.gz |
rrs/views.py: RecipeListView always use recipes from history.
If recipe don't exist in history means that don't need to be displayed.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
-rw-r--r-- | rrs/views.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/rrs/views.py b/rrs/views.py index d583acb495..7fce084c81 100644 --- a/rrs/views.py +++ b/rrs/views.py @@ -139,20 +139,13 @@ def _get_recipe_list(milestone): maintainers_dict_all = {} current_date = date.today() - # If the is the curent milestone take the data recipes table - # otherwise take it from recipe upgrade - if current_date >= milestone.start_date and \ - current_date <= milestone.end_date: - recipes = Raw.get_re_all() - else: - recipes = Raw.get_reupg_by_date(milestone.end_date) - + recipes = Raw.get_reupg_by_date(milestone.end_date) for i,re in enumerate(recipes): if re.has_key('pv'): recipes[i]['version'] = re['pv'] recipes_ids.append(re['id']) - if recipe_upstream_history: + if recipes and recipe_upstream_history: recipe_upstream_all = Raw.get_reup_by_recipes_and_date( recipes_ids, recipe_upstream_history.id) recipe_last_updated = Raw.get_reup_by_last_updated( |