From 6aa7c1899f29ba02b0fe493024b07a60abb083f1 Mon Sep 17 00:00:00 2001 From: Kento HASEGAWA Date: Thu, 16 Aug 2018 12:55:20 +0900 Subject: [PATCH] Use a solver address instead of a client address for a json-log filename --- comm/server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comm/server/main.py b/comm/server/main.py index 7e3e404..5cd6189 100644 --- a/comm/server/main.py +++ b/comm/server/main.py @@ -162,7 +162,7 @@ def post(): if not os.path.isdir(save_path): os.makedirs(save_path) - file_name = "{}-{}.json".format(receive_time_str, _client.replace(":", ".")) + file_name = "{}-{}.json".format(receive_time_str, _solver.replace(":", ".")) save_file_path = "{}/{}".format(save_path, file_name) with open(save_file_path, "w") as fp: json.dump(dat, fp, indent=4) -- 2.22.0