summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2024-05-01 11:29:29 +0200
committerAndré Glüpker <git@wgmd.de>2024-05-01 11:29:50 +0200
commit7329801038315ab840a6efde4c4239d0e4809a58 (patch)
treeb8361f287e16d203de1ff097ca1c97d9b09aedf2
parentade257c785944544a9d558dbf2e5f602e9e7ad92 (diff)
downloadrss-feeds-7329801038315ab840a6efde4c4239d0e4809a58.tar.gz
rss-feeds-7329801038315ab840a6efde4c4239d0e4809a58.tar.bz2
rss-feeds-7329801038315ab840a6efde4c4239d0e4809a58.zip
Fix database path
-rwxr-xr-xurldelta.py3
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