Correct method select

This commit is contained in:
localhost_frssoft 2022-09-19 15:03:49 +03:00
parent f6b7d41df5
commit 40f88d4e7e

View File

@ -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]