Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pmtool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
EYRAUD-DUBOIS Lionel
pmtool
Commits
9c30d67e
Commit
9c30d67e
authored
Jun 18, 2019
by
EYRAUD-DUBOIS Lionel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
By default, resultStorage no longer checks if the input file changed
parent
80c12727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tools/resultStorage.py
tools/resultStorage.py
+5
-1
No files found.
tools/resultStorage.py
View file @
9c30d67e
...
...
@@ -122,7 +122,7 @@ def MakeStorage(instanceParameters, getInstanceFile, getPlatformFile, commandArg
self
.
_writeRecord
(
w
,
r
)
@
classmethod
def
has
Valid
Answer
(
cls
,
q
,
data
):
def
has
UpToDate
Answer
(
cls
,
q
,
data
):
if
q
in
data
:
lastAnswer
=
max
(
data
[
q
],
key
=
lambda
r
:
r
.
date
)
src
=
cls
.
getFilename
(
q
)
...
...
@@ -135,6 +135,10 @@ def MakeStorage(instanceParameters, getInstanceFile, getPlatformFile, commandArg
else
:
return
False
@
classmethod
def
hasValidAnswer
(
cls
,
q
,
data
):
return
q
in
data
def
updateFile
(
self
,
questions
,
pred
=
lambda
q
,
data
:
not
Storage
.
hasValidAnswer
(
q
,
data
)):
data
=
self
.
readFile
()
toRun
=
[
q
for
q
in
questions
if
pred
(
q
,
data
)]
...
...
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