summaryrefslogtreecommitdiff
path: root/urldelta.py
diff options
context:
space:
mode:
Diffstat (limited to 'urldelta.py')
-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