From 164ea9aca9c9d412e669154cc0803fead9c0b4e1 Mon Sep 17 00:00:00 2001 From: agres Date: Sun, 23 Mar 2025 20:49:34 +0100 Subject: [PATCH] 'fix' for a bug --- src/runtime.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/runtime.py b/src/runtime.py index c69f97e..46855b8 100644 --- a/src/runtime.py +++ b/src/runtime.py @@ -1,9 +1,12 @@ import argparse from time import sleep +from database_handler import Database from gdpr_export import export_gdpr_data from scraper import scrape_missing_infos, scraping +db = Database() + # Initialize the parser parser = argparse.ArgumentParser(description="A python script written in Python3.13 which continuously checks what spotify songs " "the user is listening to and logging these in a local database. \n" @@ -32,3 +35,7 @@ while True: scraping() print('Done Scraping') sleep(1800) + + +# TODO: Trap this: +db.close()