Commit e708dc6f authored by Hinrikus Wolf's avatar Hinrikus Wolf

fix meta problems with undo

parent 11094995
......@@ -208,5 +208,7 @@ class Statement(db.Model):
def undo(self):
if not self.executed:
return False
self.topic.sorted_statements()[0].is_current = False
self.executed = False
self.execution_time = datetime(1970, 1, 1)
self.is_current = True
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