This commit is contained in:
2025-01-11 20:59:10 -05:00
parent 85a0d6bc62
commit 3c57f13557
18 changed files with 464 additions and 365 deletions

View File

@ -56,7 +56,7 @@ class Transcriptions(FastAPI):
show_id = int(show_id)
if not(str(show_id).isnumeric()) or not(show_id in [0, 1, 2]):
if not(str(show_id).isnumeric()) or show_id not in [0, 1, 2]:
return {
'err': True,
'errorText': 'Show not found.'
@ -99,7 +99,7 @@ class Transcriptions(FastAPI):
"""
show_id = data.s
episode_id = data.e
# pylint: disable=line-too-long
match show_id:
case 0:
db_path = os.path.join("/", "var", "lib", "singerdbs", "sp.db")