Commit 6aa7c189 authored by Kento HASEGAWA's avatar Kento HASEGAWA
Browse files

Use a solver address instead of a client address for a json-log filename

parent e2397ae4
Loading
Loading
Loading
Loading
+1 −1
Changes for comm/server/main.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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)