Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
a42b2006
Verified
Commit
a42b2006
authored
Apr 15, 2019
by
Peter Stanko
Browse files
Fix in writing the state
parent
460019ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
portal/service/courses.py
View file @
a42b2006
...
...
@@ -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
(
s
tat
e
)
self
.
write_entity
(
s
elf
.
cours
e
)
def
activate
(
self
):
self
.
set_state
(
CourseState
.
ACTIVE
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment