aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-04-11 10:35:56 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commitda3bfff3a1d42d0db144565eaad3710df833d0b5 (patch)
tree62be89941eb768b9a63500debfe9a86ae22d93b2
parent201c74ca0f202171d6a4a92ec14b1b781298aaf6 (diff)
downloadopenembedded-core-contrib-da3bfff3a1d42d0db144565eaad3710df833d0b5.tar.gz
rrs: drop a couple of unused functions from Raw class
These two functions aren't being used anywhere. In the interest of having as little code directly reading the database using SQL as possible, drop them. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--rrs/views.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/rrs/views.py b/rrs/views.py
index 432e30ac03..fae34d641b 100644
--- a/rrs/views.py
+++ b/rrs/views.py
@@ -77,15 +77,6 @@ class Raw():
"""
@staticmethod
- def get_re_all():
- """ Get all Recipes """
- cur = connection.cursor()
- cur.execute("""SELECT id, pn, pv, summary
- FROM layerindex_recipe;
- """)
- return Raw.dictfetchall(cur)
-
- @staticmethod
def get_re_by_mantainer_and_date(maintainer, date_id):
""" Get Recipes based on Maintainer and Recipe Maintainer History """
recipes = []
@@ -215,18 +206,6 @@ class Raw():
return Raw.dictfetchall(cur)
@staticmethod
- def get_reupg_by_dates(start_date, end_date):
- """ Get Recipe Upgrade for the milestone """
- cur = connection.cursor()
- cur.execute("""SELECT id, recipe_id, maintainer_id, author_date, commit_date
- FROM rrs_recipeupgrade
- WHERE commit_date >= %s
- AND commit_date <= %s
- ORDER BY commit_date DESC;
- """, [start_date, end_date])
- return Raw.dictfetchall(cur)
-
- @staticmethod
def get_reupg_by_dates_and_recipes(start_date, end_date, recipes_id):
""" Get Recipe Upgrade for the milestone based on Recipes """
recipes = str(recipes_id).strip('[]')