diff --git a/beat/web/experiments/models.py b/beat/web/experiments/models.py index 0dde4f89697e6f82a1ce40622f7963c879216fec..4e086ef8726094c148180f669127a8c8a5905027 100644 --- a/beat/web/experiments/models.py +++ b/beat/web/experiments/models.py @@ -664,6 +664,8 @@ class Experiment(Shareable): def reset(self): """Resets an experiment so it can be run again""" + if not self.done(): return #can only reset experiments which are done + self.blocks.update( status=Block.NOT_CACHED, start_date=None,