aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-03-23 18:54:46 +0100
committercedricbonhomme <devnull@localhost>2010-03-23 18:54:46 +0100
commit80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0 (patch)
tree7145d5af3e41b23d0d28179ea82aada43e108014 /utils.py
parentMinor improvements for the e-mail notification. (diff)
downloadnewspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.tar.gz
newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.tar.bz2
newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.zip
Release 1.0. Mail notification. A lot of improvements and some bug fix.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index 25031317..9fafe634 100755
--- a/utils.py
+++ b/utils.py
@@ -2,7 +2,7 @@
#-*- coding: utf-8 -*-
__author__ = "Cedric Bonhomme"
-__version__ = "$Revision: 0.3 $"
+__version__ = "$Revision: 0.4 $"
__date__ = "$Date: 2010/03/10 $"
__copyright__ = "Copyright (c) 2010 Cedric Bonhomme"
__license__ = "GPLv3"
@@ -176,7 +176,7 @@ def create_base():
Create the base if not exists.
"""
sqlite3.register_adapter(str, lambda s : s.decode('utf-8'))
- conn = sqlite3.connect("./var/feed.db", isolation_level = None)
+ conn = sqlite3.connect(sqlite_base, isolation_level = None)
c = conn.cursor()
c.execute('''create table if not exists feeds
(feed_title text, feed_site_link text, \
@@ -197,7 +197,7 @@ def load_feed():
list_of_feeds = []
list_of_articles = []
try:
- conn = sqlite3.connect("./var/feed.db", isolation_level = None)
+ conn = sqlite3.connect(sqlite_base, isolation_level = None)
c = conn.cursor()
list_of_feeds = c.execute("SELECT * FROM feeds").fetchall()
except:
bgstack15