Spaces:
Sleeping
Sleeping
Robin Chiu
commited on
Commit
·
2ec8afb
1
Parent(s):
612bd91
print cp information.
Browse files- utils/tools.py +2 -0
utils/tools.py
CHANGED
|
@@ -59,6 +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 |
|
| 63 |
try:
|
| 64 |
# 連接到 SQLite 數據庫
|
|
|
|
| 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 數據庫
|