Verified Commit a42b2006 authored by Peter Stanko's avatar Peter Stanko
Browse files

Fix in writing the state

parent 460019ad
......@@ -47,7 +47,7 @@ class CourseService(GeneralService):
def set_state(self, state: CourseState):
log.info(f"[STATE] Course set state {self.course.log_name}: {state}")
self.course.state = state
self.write_entity(state)
self.write_entity(self.course)
def activate(self):
self.set_state(CourseState.ACTIVE)
......
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