themissingCRAM
commited on
Commit
·
02abf34
1
Parent(s):
e7a3c25
hmmm
Browse files
app.py
CHANGED
@@ -60,7 +60,8 @@ def init_db():
|
|
60 |
for row in rows:
|
61 |
stmt = insert(table).values(**row)
|
62 |
with engine.begin() as connection:
|
63 |
-
connection.execute(stmt)
|
|
|
64 |
|
65 |
table_name = "receipts"
|
66 |
receipts = Table(
|
@@ -90,8 +91,8 @@ def init_db():
|
|
90 |
},
|
91 |
]
|
92 |
insert_rows_into_table(rows, receipts)
|
93 |
-
with engine.begin() as conn:
|
94 |
-
|
95 |
|
96 |
|
97 |
if __name__ == "__main__":
|
|
|
60 |
for row in rows:
|
61 |
stmt = insert(table).values(**row)
|
62 |
with engine.begin() as connection:
|
63 |
+
r = connection.execute(stmt)
|
64 |
+
print(r)
|
65 |
|
66 |
table_name = "receipts"
|
67 |
receipts = Table(
|
|
|
91 |
},
|
92 |
]
|
93 |
insert_rows_into_table(rows, receipts)
|
94 |
+
# with engine.begin() as conn:
|
95 |
+
# print("SELECT test", conn.execute(select("receipts")))
|
96 |
|
97 |
|
98 |
if __name__ == "__main__":
|