mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-25 13:21:29 +00: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 a new issue