minor improvement on stopRun()
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1529 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
6ee0680ee4
commit
ac2a48f72f
1 changed files with 3 additions and 1 deletions
|
@ -60,8 +60,10 @@ class TrackingStorage(BTreeContainer):
|
||||||
return self.runId
|
return self.runId
|
||||||
|
|
||||||
def stopRun(self, taskId):
|
def stopRun(self, taskId):
|
||||||
if taskId in self.currentRuns:
|
runId = self.currentRuns.get(taskId)
|
||||||
|
if runId:
|
||||||
del self.currentRuns[taskId]
|
del self.currentRuns[taskId]
|
||||||
|
return runId
|
||||||
|
|
||||||
def saveUserTrack(self, taskId, runId, userName, data, replace=False):
|
def saveUserTrack(self, taskId, runId, userName, data, replace=False):
|
||||||
if not runId:
|
if not runId:
|
||||||
|
|
Loading…
Add table
Reference in a new issue