diff options
author | cedricbonhomme <devnull@localhost> | 2010-06-10 13:34:25 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-06-10 13:34:25 +0200 |
commit | fe6f5ad002195ba4d4f06303b27a4cc75e15f6a6 (patch) | |
tree | 3e5a45314a6b036ee23e660dc7d48d31d6314007 /utils.py | |
parent | Remove a feed from the file feed.lst. Some improvements. (diff) | |
download | newspipe-fe6f5ad002195ba4d4f06303b27a4cc75e15f6a6.tar.gz newspipe-fe6f5ad002195ba4d4f06303b27a4cc75e15f6a6.tar.bz2 newspipe-fe6f5ad002195ba4d4f06303b27a4cc75e15f6a6.zip |
It is now possible to remove all articles of a given feed from the SQLite base via the management page.
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -217,7 +217,8 @@ def remove_feed(feed_url): # Remove articles from this feed from the SQLite base. conn = sqlite3.connect(sqlite_base, isolation_level = None) c = conn.cursor() - c.execute("") + c.execute("DELETE FROM feeds WHERE feed_link='" + feed_url +"'") + c.execute("DELETE FROM articles WHERE feed_link='" + feed_url +"'") conn.commit() c.close() |