Commit 9c30d67e authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

By default, resultStorage no longer checks if the input file changed

parent 80c12727
......@@ -122,7 +122,7 @@ def MakeStorage(instanceParameters, getInstanceFile, getPlatformFile, commandArg
self._writeRecord(w, r)
@classmethod
def hasValidAnswer(cls, q, data):
def hasUpToDateAnswer(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)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment