X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=rainbowstream%2Fdb.py;h=5bfb04081c715ad1b8f2690b1527a42987e9222a;hb=2e1241c711c531d4b98879a0189ee69e6a8bdc4f;hp=2ab23bce0e80a371f05792886c32644a6e82e991;hpb=2d34102927771794440b85c6b15c4a1d35f23dd0;p=rainbowstream.git diff --git a/rainbowstream/db.py b/rainbowstream/db.py index 2ab23bc..5bfb040 100644 --- a/rainbowstream/db.py +++ b/rainbowstream/db.py @@ -98,23 +98,3 @@ class RainbowDB(): session = Session() res = session.query(Theme).all() return res - - def list_store(self, list_id, list_name): - """ - Store list id and name - """ - Session = sessionmaker(bind=self.engine) - session = Session() - l = List(list_id, list_name) - session.add(l) - session.commit() - - def list_name_to_id_query(self, list_name): - """ - Query base of list id - """ - Session = sessionmaker(bind=self.engine) - session = Session() - res = session.query(List).filter_by(list_name=list_name).all() - return res -