diff options
author | cedricbonhomme <devnull@localhost> | 2010-03-23 18:54:46 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-03-23 18:54:46 +0100 |
commit | 80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0 (patch) | |
tree | 7145d5af3e41b23d0d28179ea82aada43e108014 /utils.py | |
parent | Minor improvements for the e-mail notification. (diff) | |
download | newspipe-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-x | utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |