summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-02-15 13:21:51 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-02-15 13:21:51 +0800
commit548e254fee067bf13c006cc7e8f9bc4b88f50574 (patch)
tree95f3f7f479802166c8b4e92ae6899d691104469c
parenta172ac560fd3c8b11f0ab1370bd015203c134de9 (diff)
merge_edges.py: datetime.now() dose not work. Should be datetime.datetime.now()
-rw-r--r--Code/merge_edges.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Code/merge_edges.py b/Code/merge_edges.py
index a2da07f..41d06e0 100644
--- a/Code/merge_edges.py
+++ b/Code/merge_edges.py
@@ -29,7 +29,7 @@ def write_log_file(s, fname):
if not os.path.exists(fname):
return None
f = open(fname, 'a')
- curr_time = datetime.now().strftime('%Y-%m-%d %H:%M')
+ curr_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M')
s = '[' + curr_time + ']: ' + s
if not '\n' in s:
s += '\n'
@@ -188,7 +188,6 @@ for fname in sorted(glob.glob(os.path.join(EDGE_POOL_DIR, 'edges*.*'))):
f.close()
-
write_log_file('[merge_edges.py] BRAIN has collected edges from %d files.' % (file_count) , UPDATE_NETWORK_LOG_FILE)
# make html pages