cleanup
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user