diff --git a/src/python/dm/ds_web_service/service/impl/experimentSessionControllerImpl.py b/src/python/dm/ds_web_service/service/impl/experimentSessionControllerImpl.py index d814ccc275a74467caa04633a912d158aa463620..561b4d31a7049c3334c11de8a136c877b646e86b 100755 --- a/src/python/dm/ds_web_service/service/impl/experimentSessionControllerImpl.py +++ b/src/python/dm/ds_web_service/service/impl/experimentSessionControllerImpl.py @@ -43,16 +43,16 @@ class ExperimentSessionControllerImpl(DmObjectManager): def startExperiment(self, name): experiment = self.experimentDbApi.getExperimentWithUsers(name) - #if experiment.get('startDate') is None: - # experiment2 = self.experimentDbApi.setExperimentStartDateToNow(name) - # experiment['startDate'] = experiment2['startDate'] + if experiment.get('startDate') is None: + experiment2 = self.experimentDbApi.setExperimentStartDateToNow(name) + experiment['startDate'] = experiment2['startDate'] ExperimentManager.getInstance().createExperimentDataDirectory(experiment) return experiment def stopExperiment(self, name): experiment = self.experimentDbApi.getExperimentByName(name) - #if experiment.get('endDate') is None: - # experiment = self.experimentDbApi.setExperimentEndDateToNow(name) + if experiment.get('endDate') is None: + experiment = self.experimentDbApi.setExperimentEndDateToNow(name) ExperimentManager.getInstance().updateExperimentWithStorageDataDirectory(experiment) return experiment