aboutsummaryrefslogtreecommitdiff
path: root/pc2rec.py
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2022-05-22 11:42:00 -0600
committernavanchauhan <navanchauhan@gmail.com>2022-05-22 11:42:00 -0600
commit404c6fb1a3aa8e19db25a5c53098ce4f8a917fd7 (patch)
tree578b9b21384b889c37b7f9ab2268456e05da8a96 /pc2rec.py
parent801289d123b6e598110a5a1af96605fce9573f7c (diff)
cleaned with black
Diffstat (limited to 'pc2rec.py')
-rw-r--r--pc2rec.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pc2rec.py b/pc2rec.py
index d427dad..b802631 100644
--- a/pc2rec.py
+++ b/pc2rec.py
@@ -10,7 +10,9 @@ from sqlalchemy import func
movie_name = "Forrest Gump"
with engine.connect() as conn:
- movie_deets = select(movies_table).filter(func.lower(movies_table.columns.title)==func.lower(movie_name))
- result = conn.execute(movie_deets)
- for row in result:
- print(row) \ No newline at end of file
+ movie_deets = select(movies_table).filter(
+ func.lower(movies_table.columns.title) == func.lower(movie_name)
+ )
+ result = conn.execute(movie_deets)
+ for row in result:
+ print(row)