Spaces:
Running
Running
Robin Chiu
commited on
Commit
·
295aacc
1
Parent(s):
15279d5
Remove the print.
Browse files- utils/tools.py +3 -3
utils/tools.py
CHANGED
|
@@ -59,8 +59,8 @@ def execute_sqlite_query(db_name, query):
|
|
| 59 |
# check the file exist
|
| 60 |
if not os.path.exists(tmp_db_file):
|
| 61 |
return {'success': False, 'error': f"cp {db_path} to {tmp_db_file} failed."}
|
| 62 |
-
else:
|
| 63 |
-
|
| 64 |
|
| 65 |
try:
|
| 66 |
# 連接到 SQLite 數據庫
|
|
@@ -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)
|
|
|
|
| 59 |
# check the file exist
|
| 60 |
if not os.path.exists(tmp_db_file):
|
| 61 |
return {'success': False, 'error': f"cp {db_path} to {tmp_db_file} failed."}
|
| 62 |
+
# else:
|
| 63 |
+
# print(f"cp {db_path} to {tmp_db_file} ok.")
|
| 64 |
|
| 65 |
try:
|
| 66 |
# 連接到 SQLite 數據庫
|
|
|
|
| 106 |
get_tables('solar')
|
| 107 |
get_meaning('solar', 'alerts')
|
| 108 |
result = execute_sqlite_query('solar', 'SELECT * from test')
|
| 109 |
+
# print(result)
|