Spaces:
Sleeping
Sleeping
Robin Chiu
commited on
Commit
·
03502b1
1
Parent(s):
2ec8afb
test not copy
Browse files- utils/tools.py +2 -2
utils/tools.py
CHANGED
|
@@ -64,7 +64,7 @@ def execute_sqlite_query(db_name, query):
|
|
| 64 |
|
| 65 |
try:
|
| 66 |
# 連接到 SQLite 數據庫
|
| 67 |
-
conn = sqlite3.connect(
|
| 68 |
cursor = conn.cursor()
|
| 69 |
|
| 70 |
# 執行查詢
|
|
@@ -106,4 +106,4 @@ get_schema('solar', 'alerts')
|
|
| 106 |
get_tables('solar')
|
| 107 |
get_meaning('solar', 'alerts')
|
| 108 |
result = execute_sqlite_query('solar', 'SELECT * from test')
|
| 109 |
-
print(result)
|
|
|
|
| 64 |
|
| 65 |
try:
|
| 66 |
# 連接到 SQLite 數據庫
|
| 67 |
+
conn = sqlite3.connect(db_path)
|
| 68 |
cursor = conn.cursor()
|
| 69 |
|
| 70 |
# 執行查詢
|
|
|
|
| 106 |
get_tables('solar')
|
| 107 |
get_meaning('solar', 'alerts')
|
| 108 |
result = execute_sqlite_query('solar', 'SELECT * from test')
|
| 109 |
+
print(result)
|