Commit
·
3ba8764
1
Parent(s):
b4efc08
Fix
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def test_query_on_dummy_db(db_code, query):
|
|
| 175 |
|
| 176 |
# Run the provided test query against the database
|
| 177 |
cursor.execute(query)
|
| 178 |
-
print(cursor.fetchall())
|
| 179 |
|
| 180 |
# Close the connection
|
| 181 |
conn.close()
|
|
@@ -184,7 +184,7 @@ def test_query_on_dummy_db(db_code, query):
|
|
| 184 |
return True
|
| 185 |
|
| 186 |
except Exception as e:
|
| 187 |
-
print(f"
|
| 188 |
return False
|
| 189 |
|
| 190 |
|
|
|
|
| 175 |
|
| 176 |
# Run the provided test query against the database
|
| 177 |
cursor.execute(query)
|
| 178 |
+
print(f"Query: {query}\tResult: {cursor.fetchall()}")
|
| 179 |
|
| 180 |
# Close the connection
|
| 181 |
conn.close()
|
|
|
|
| 184 |
return True
|
| 185 |
|
| 186 |
except Exception as e:
|
| 187 |
+
print(f"Query: {query}\tError encountered: {e}")
|
| 188 |
return False
|
| 189 |
|
| 190 |
|