mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-11-22 11:39:20 +02:00
Correct method select
This commit is contained in:
parent
f6b7d41df5
commit
40f88d4e7e
|
@ -62,7 +62,7 @@ def extract_ru_locale_from_tsv(title_akas_tsv):
|
|||
continue
|
||||
|
||||
tt_id = int(line[0].split("tt")[1])
|
||||
tt_type = c.execute(f"SELECT type FROM titles WHERE tt_id={tt_id}").fetchone()[0]
|
||||
tt_type = c.execute("SELECT type FROM titles WHERE tt_id = (?)", (tt_id, )).fetchone()[0]
|
||||
if tt_type not in ("movie", "tvMovie", "video"):
|
||||
continue
|
||||
ru_name = line[2]
|
||||
|
|
Loading…
Reference in New Issue