X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Fdb.py;h=5bfb04081c715ad1b8f2690b1527a42987e9222a;hp=2ab23bce0e80a371f05792886c32644a6e82e991;hb=1f2f615927934706083c9571cd122363a6080956;hpb=b68e80f6d55d4d9f995403aefb2bd952ea5ebf43 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 -