aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
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