mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-22 19:33:34 +02:00
Correct method select
This commit is contained in:
parent
f6b7d41df5
commit
40f88d4e7e
1 changed files with 1 additions and 1 deletions
|
@ -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