summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLan Hui <lanhui@zjnu.edu.cn>2025-10-29 18:07:53 +0800
committerLan Hui <lanhui@zjnu.edu.cn>2025-10-29 18:07:53 +0800
commitc932d81d3ed160f07c758180aada5efb51899db0 (patch)
treea77d3711fb6c6cef3ec23749e9ea90862710c2cb
parent9a85ad752194846f26f2555d1f059f76ed31c43d (diff)
Fix curr_time not defined error
-rw-r--r--Code/download_and_map.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Code/download_and_map.py b/Code/download_and_map.py
index e9fb14b..bb46c81 100644
--- a/Code/download_and_map.py
+++ b/Code/download_and_map.py
@@ -420,7 +420,7 @@ if not last_session_finished(DOWNLOADED_SRA_ID_LOG_FILE): # last session not fin
write_network_log_file(s, UPDATE_NETWORK_LOG_FILE)
if age_of_file_in_hours(DOWNLOADED_SRA_ID_LOG_FILE) > 24: # add DONE to the log file anyway
append_done(DOWNLOADED_SRA_ID_LOG_FILE)
- write_download_log_file(DOWNLOADED_SRA_ID_LOG_FILE, 'DONE at %s\n' % (curr_time))
+ write_download_log_file(DOWNLOADED_SRA_ID_LOG_FILE, 'DONE at %s\n' % (datetime.now().strftime('%Y-%m-%d_%H%M')))
reverse_lines(DOWNLOADED_SRA_ID_LOG_FILE, os.path.splitext(DOWNLOADED_SRA_ID_LOG_FILE)[0] + '_reversed.txt')
kill_process('wget')
sys.exit()