Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2019-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
adc2019
adc2019-system
Commits
38549fee
Commit
38549fee
authored
Aug 28, 2019
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug
parent
9d584876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
data.py
utils/data.py
+4
-1
No files found.
utils/data.py
View file @
38549fee
...
@@ -355,8 +355,11 @@ class Problem(object):
...
@@ -355,8 +355,11 @@ class Problem(object):
self
.
solutions
[
solution_id
]
=
solution
self
.
solutions
[
solution_id
]
=
solution
if
solution
.
status
==
'done'
:
if
solution
.
status
==
'done'
:
outdir
=
f
"{self.solution_path}/{self.name}"
if
not
os
.
path
.
exists
(
outdir
):
os
.
mkdir
(
outdir
)
problem_path
=
self
.
path
problem_path
=
self
.
path
solution_path
=
f
'{
self.solution_path}/{self.name
}/tmp-{solution.request_id}-{solution.worker}.txt'
solution_path
=
f
'{
outdir
}/tmp-{solution.request_id}-{solution.worker}.txt'
with
open
(
solution_path
,
'w'
)
as
fp
:
with
open
(
solution_path
,
'w'
)
as
fp
:
fp
.
write
(
solution
.
solution
)
fp
.
write
(
solution
.
solution
)
...
...
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