diff options
author | André Glüpker <git@wgmd.de> | 2024-05-01 11:29:29 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2024-05-01 11:29:50 +0200 |
commit | 7329801038315ab840a6efde4c4239d0e4809a58 (patch) | |
tree | b8361f287e16d203de1ff097ca1c97d9b09aedf2 /urldelta.py | |
parent | ade257c785944544a9d558dbf2e5f602e9e7ad92 (diff) | |
download | rss-feeds-7329801038315ab840a6efde4c4239d0e4809a58.tar.gz rss-feeds-7329801038315ab840a6efde4c4239d0e4809a58.tar.bz2 rss-feeds-7329801038315ab840a6efde4c4239d0e4809a58.zip |
Fix database path
Diffstat (limited to 'urldelta.py')
-rwxr-xr-x | urldelta.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/urldelta.py b/urldelta.py index 7d487bd..0b775b7 100755 --- a/urldelta.py +++ b/urldelta.py @@ -4,12 +4,13 @@ from datetime import datetime import sqlite3 import time import requests +import os from rss_types import RSSItem, RSSFeed def get_page_delta(url): - conn = sqlite3.connect("website_data.db") + conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), "database", "website_data.db")) cursor = conn.cursor() # Initialize database, if needed |