* Added README
* Custom browser variable for auth_helper.sh
* Fix requirements
* Fix dataset converter
This commit is contained in:
localhost_frssoft 2022-09-03 02:00:23 +03:00
parent 09b31528f9
commit b8b7b6f70b
4 changed files with 40 additions and 4 deletions

View file

@ -40,6 +40,7 @@ def convert_tsv_to_db(title_basics_tsv):
if counter >= 1000:
c.executemany("INSERT OR REPLACE INTO titles(tt_id, type, original_name, ru_name, year) VALUES (?, ?, ?, ?, ?)", write_dataset)
write_dataset = []
counter = 0
except Exception as E:
print(E)
pass
@ -83,6 +84,5 @@ def get_title_by_id(films_ids=list):
for i in films_ids:
tt_film = c.execute(f"SELECT * FROM titles WHERE tt_id={i}").fetchone()
tt_list.append(tt_film)
print(tt_list)
return tt_list