diff options
author | Parker M <contact@pkrm.dev> | 2023-09-17 19:20:26 -0500 |
---|---|---|
committer | Parker M <contact@pkrm.dev> | 2023-09-17 19:20:26 -0500 |
commit | 49a493fd32b545cece7b72b2af94d5f1b6d7765f (patch) | |
tree | 3408388561295a2ff46df1e675c1a9caa2e34bfe /app/db_removal.py | |
parent | 04a21c4f0876115acce1c6e25ab20e98d4bd8a2a (diff) |
config changes
Diffstat (limited to 'app/db_removal.py')
-rw-r--r-- | app/db_removal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/db_removal.py b/app/db_removal.py index e03ea2a..1c49dd5 100644 --- a/app/db_removal.py +++ b/app/db_removal.py @@ -2,7 +2,7 @@ from apscheduler.schedulers.background import BackgroundScheduler import sqlite3 import requests -from initialize_variables import radarr_host, headers +from initialize_variables import radarr_host_url, headers # Remove all entries from the database of movies that have already finished downloading # This helps to stop from entries building up in the database and slowing down everything @@ -17,7 +17,7 @@ def clear_database(): ''') movie_ids = cursor.fetchall() # Get all of the movie_ids that are currently downloading/queued and/or missing - response = requests.get(f'{radarr_host}/api/v3/queue/', headers=headers) + response = requests.get(f'{radarr_host_url}/api/v3/queue/', headers=headers) current_movie_ids = [] for movie in response.json()['records']: current_movie_ids.append(str(movie['movieId'])) |