Test
Some checks are pending
Create and publish a Docker image / build-and-push-image (push) Waiting to run

This commit is contained in:
Parker M. 2025-01-20 22:45:40 -06:00
parent 076da15485
commit 2333bac6da
Signed by: parker
GPG Key ID: 505ED36FC12B5D5E

View File

@ -130,18 +130,18 @@ class Status(commands.Cog):
id_str = "movieId" if service == "radarr" else "seriesId" id_str = "movieId" if service == "radarr" else "seriesId"
# If the content was requested by the user # If the content was requested by the user
if ( if (
download[int(id_str)] in content_info.keys() int(download[id_str]) in content_info.keys()
and download[int(id_str)] not in added_ids and int(download[id_str]) not in added_ids
): ):
# Append local ID # Append local ID
added_ids.append(download[int(id_str)]) added_ids.append(int(download[id_str]))
# Add the download to the embed # Add the download to the embed
try: try:
time_left = self.process_time(download["timeleft"]) time_left = self.process_time(download["timeleft"])
except KeyError: except KeyError:
time_left = "Unknown" time_left = "Unknown"
description += ( description += (
f"\n**{content_info[download[int(id_str)]]['title']} ({content_info[download[int(id_str)]]['release_year']})**" f"\n**{content_info[int(download[id_str])]['title']} ({content_info[int(download[id_str])]['release_year']})**"
f" - Time Left: `{time_left}`" f" - Time Left: `{time_left}`"
) )
@ -188,7 +188,7 @@ class Status(commands.Cog):
cursor.execute( cursor.execute(
"DELETE FROM requests WHERE user_id = ? AND" "DELETE FROM requests WHERE user_id = ? AND"
" local_id = ?", " local_id = ?",
(user_id, int(local_id)), (user_id, local_id),
) )
db.commit() db.commit()
db.close() db.close()