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