add get_feeds method

This commit is contained in:
mitsuha_s 2022-05-28 22:22:41 +00:00
parent 1c105e6ba0
commit a07011ced7

View file

@ -37,9 +37,10 @@ class Database():
self.cur.execute('DELETE FROM feeds WHERE id = ?', (feed_id,))
self.conn.commit()
def get_feeds():
pass
def get_feeds(self) -> list:
self.cur.execute('SELECT * FROM feeds')
return self.cur.fetchall()
def get_users_subscribes():
pass