From 7329801038315ab840a6efde4c4239d0e4809a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 1 May 2024 11:29:29 +0200 Subject: Fix database path --- urldelta.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3