aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-10 08:52:28 +0100
committercedricbonhomme <devnull@localhost>2012-03-10 08:52:28 +0100
commit4bf97ac3fb1589efff74439402e716ea94bea97e (patch)
tree38fc2c4fb031288269b2ca1b4cb389c741d8e9be /utils.py
parentBetter code of the management page. (diff)
downloadnewspipe-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-xutils.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/utils.py b/utils.py
index d789f006..047ed329 100755
--- a/utils.py
+++ b/utils.py
@@ -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):
"""
bgstack15