'fix' for a bug

This commit is contained in:
agres
2025-03-23 20:49:34 +01:00
parent af6b3dba13
commit 164ea9aca9
+7
View File
@@ -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()