summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-02-15 18:01:39 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-02-15 18:01:39 +0800
commitb1447f25ff2d52b06927ab171364a8c23d117a92 (patch)
treedf73567d44f8ed066a35de586cea40e1b033270f
parent3387cacd5c891688d8d6ecdcef40022eba76047d (diff)
update_network_by_force.py: enable visiting the web app each time the network is updated
The Apache web server will be restarted daily to free memory. sudo service apache2 restart
-rw-r--r--Code/update_network_by_force.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Code/update_network_by_force.py b/Code/update_network_by_force.py
index f62bc07..d6631c5 100644
--- a/Code/update_network_by_force.py
+++ b/Code/update_network_by_force.py
@@ -102,7 +102,7 @@ def summarize_edge_file(fname):
########## Renew saved G.pickle and SOURCE_NODES.pickle in Webapp #######################
cmd = 'curl http://118.25.96.118/brain/before'
-#os.system(cmd)
+os.system(cmd)
########## Merge edges #######################
# update edges.txt, a merged file from two sources, HISTORY_DIR and HISTORY_DIR2. Some new edge files are being generated ...