Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
6aa7c189
Commit
6aa7c189
authored
Aug 16, 2018
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a solver address instead of a client address for a json-log filename
parent
e2397ae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.py
comm/server/main.py
+1
-1
No files found.
comm/server/main.py
View file @
6aa7c189
...
@@ -162,7 +162,7 @@ def post():
...
@@ -162,7 +162,7 @@ def post():
if
not
os
.
path
.
isdir
(
save_path
):
if
not
os
.
path
.
isdir
(
save_path
):
os
.
makedirs
(
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
)
save_file_path
=
"{}/{}"
.
format
(
save_path
,
file_name
)
with
open
(
save_file_path
,
"w"
)
as
fp
:
with
open
(
save_file_path
,
"w"
)
as
fp
:
json
.
dump
(
dat
,
fp
,
indent
=
4
)
json
.
dump
(
dat
,
fp
,
indent
=
4
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment