From 404c6fb1a3aa8e19db25a5c53098ce4f8a917fd7 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Sun, 22 May 2022 11:42:00 -0600 Subject: cleaned with black --- database.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'database.py') diff --git a/database.py b/database.py index 369cf97..1a4bda0 100644 --- a/database.py +++ b/database.py @@ -5,7 +5,7 @@ from sqlalchemy import insert from sqlalchemy.orm import sessionmaker from sqlalchemy.exc import IntegrityError -#database_url = "sqlite:///jlm.db" +# database_url = "sqlite:///jlm.db" meta = MetaData() @@ -25,15 +25,17 @@ movies_table = Table( Column("votes", Integer), Column("comment_count", Integer), Column("tagline", String), - Column("embeddings", PickleType) - + Column("embeddings", PickleType), ) + def init_db_stuff(database_url: str): engine = create_engine(database_url) meta.create_all(engine) Session = sessionmaker(bind=engine) return engine, Session + + """ movie = { "title": movie["movie"]["title"], @@ -46,4 +48,4 @@ def init_db_stuff(database_url: str): "runtime": movie["movie"]["runtime"], "country": movie["movie"]["country"] } -""" \ No newline at end of file +""" -- cgit v1.2.3