add get_feeds method
This commit is contained in:
parent
1c105e6ba0
commit
a07011ced7
|
@ -37,9 +37,10 @@ class Database():
|
||||||
self.cur.execute('DELETE FROM feeds WHERE id = ?', (feed_id,))
|
self.cur.execute('DELETE FROM feeds WHERE id = ?', (feed_id,))
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
|
|
||||||
def get_feeds():
|
def get_feeds(self) -> list:
|
||||||
pass
|
self.cur.execute('SELECT * FROM feeds')
|
||||||
|
return self.cur.fetchall()
|
||||||
|
|
||||||
def get_users_subscribes():
|
def get_users_subscribes():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue