Spaces:
Sleeping
Sleeping
samlonka
commited on
Commit
·
a33dacb
1
Parent(s):
84bf07e
''
Browse files- database.py +2 -0
database.py
CHANGED
@@ -27,7 +27,9 @@ def initialize_database():
|
|
27 |
raise # Re-raise the exception to propagate it up the call stack
|
28 |
|
29 |
def execute_query(query):
|
|
|
30 |
db = initialize_database()
|
|
|
31 |
cursor = db.cursor()
|
32 |
try:
|
33 |
cursor.execute(query)
|
|
|
27 |
raise # Re-raise the exception to propagate it up the call stack
|
28 |
|
29 |
def execute_query(query):
|
30 |
+
print(f"Db initilaizing....")
|
31 |
db = initialize_database()
|
32 |
+
print(f"Db initialized....")
|
33 |
cursor = db.cursor()
|
34 |
try:
|
35 |
cursor.execute(query)
|