diff options
author | cedricbonhomme <devnull@localhost> | 2012-03-10 08:52:28 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-03-10 08:52:28 +0100 |
commit | 4bf97ac3fb1589efff74439402e716ea94bea97e (patch) | |
tree | 38fc2c4fb031288269b2ca1b4cb389c741d8e9be /utils.py | |
parent | Better code of the management page. (diff) | |
download | newspipe-4bf97ac3fb1589efff74439402e716ea94bea97e.tar.gz newspipe-4bf97ac3fb1589efff74439402e716ea94bea97e.tar.bz2 newspipe-4bf97ac3fb1589efff74439402e716ea94bea97e.zip |
We can now again delete a feed from the management page.
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -335,16 +335,6 @@ def remove_feed(feed_url): feeds.append(line.replace("\n", "")) with open("./var/feed.lst", "w") as f: f.write("\n".join(feeds) + "\n") - # Remove articles from this feed from the SQLite base. - try: - conn = sqlite3.connect(sqlite_base, isolation_level = None) - c = conn.cursor() - c.execute("DELETE FROM feeds WHERE feed_link='" + feed_url +"'") - c.execute("DELETE FROM articles WHERE feed_link='" + feed_url +"'") - conn.commit() - c.close() - except: - pass def search_feed(url): """ |