|
@@ -150,8 +150,8 @@ def fetchDataADEI():
|
|
|
|
|
|
with open("/tmp/.tmp.yaml", 'w') as stream_tmp:
|
|
|
stream_tmp.write(yaml.dump(cache_data, default_flow_style=False))
|
|
|
- src_file = os.getcwd() + "/tmp/.tmp.yaml"
|
|
|
- dst_file = os.getcwd() + "/tmp/cache.yaml"
|
|
|
+ src_file = "/tmp/.tmp.yaml"
|
|
|
+ dst_file = "/tmp/cache.yaml"
|
|
|
shutil.copy(src_file, dst_file)
|
|
|
|
|
|
|
|
@@ -493,6 +493,7 @@ application = tornado.web.Application([
|
|
|
(r"/backup/?", BackupHandler),
|
|
|
(r"/stop/?", StopHandler),
|
|
|
(r"/designer/?", DesignerHandler),
|
|
|
+ (r"/", StatusHandler),
|
|
|
(r"/status/?", StatusHandler),
|
|
|
(r"/save/?", SaveHandler),
|
|
|
(r"/getdata/?", GetDataHandler),
|