From a07011ced7e390b08d63132da6553057603ae681 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sat, 28 May 2022 22:22:41 +0000 Subject: [PATCH] add get_feeds method --- database.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/database.py b/database.py index d4021d6..13ef081 100644 --- a/database.py +++ b/database.py @@ -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