Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
9b6fdc37
Commit
9b6fdc37
authored
Dec 07, 2021
by
Matheus Miranda
Browse files
Remove typo on signal
parent
8a0c91fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
courses/signals.py
courses/signals.py
+2
-2
No files found.
courses/signals.py
View file @
9b6fdc37
...
...
@@ -18,7 +18,7 @@ def lesson_created_or_updated(sender, instance: Lesson, **kwargs):
previous_task_hask
=
''
ct
=
ContentType
.
objects
.
get_for_model
(
instance
)
st
=
ScheduledTask
.
objects
.
filter
(
C
ontent_type
=
ct
,
object_id
=
instance
.
id
)
st
=
ScheduledTask
.
objects
.
filter
(
c
ontent_type
=
ct
,
object_id
=
instance
.
id
)
if
st
.
exists
():
previous_task_hask
=
st
.
task_hash
else
:
...
...
@@ -29,7 +29,7 @@ def lesson_created_or_updated(sender, instance: Lesson, **kwargs):
res
.
revoke
()
new_task_hash
=
publish_lesson
.
apply_async
(
args
=
[
instance
.
id
],
eta
=
instance
.
release_date
)
st
.
task_hash
=
task_hash
st
.
task_hash
=
new_
task_hash
st
.
content_object
=
instance
st
.
release_date
=
instance
.
release_date
st
.
save
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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