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()