From 40f88d4e7eb892509dd2eeaa626b14fb6e3df794 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 19 Sep 2022 15:03:49 +0300 Subject: [PATCH] Correct method select --- src/imdb_datasets_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imdb_datasets_worker.py b/src/imdb_datasets_worker.py index 51e3b99..cf67ab6 100644 --- a/src/imdb_datasets_worker.py +++ b/src/imdb_datasets_worker.py @@ -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]