mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2025-05-13 23:38:42 +00:00
Update:
* Added README * Custom browser variable for auth_helper.sh * Fix requirements * Fix dataset converter
This commit is contained in:
parent
09b31528f9
commit
b8b7b6f70b
4 changed files with 40 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue