aboutsummaryrefslogtreecommitdiff
path: root/app/db_removal.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2023-09-18 01:13:15 +0000
committerGitHub <noreply@github.com>2023-09-18 01:13:15 +0000
commit86c6806d9365d7b4872b174c1c4b3db7cfc007e7 (patch)
treec55386cc5965981edffcf9d9b23b43d7c0102933 /app/db_removal.py
parent8b94436453fa618e5fc787611862804cd62961a9 (diff)
parenteddeca8c67caf2e916af60880b327bbb2b4b8f20 (diff)
Merge branch 'main' into dependabot/pip/flask-2.2.5
Diffstat (limited to 'app/db_removal.py')
-rw-r--r--app/db_removal.py4
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']))