Skip to content

Commit

Permalink
MCKIN-21507 Add flag to enable/disable signal handling for course act…
Browse files Browse the repository at this point in the history
…ivity (#78)

These are behind a flag since they were throwing errors, and will need further investigation before the functionality of that part of the code can be tested and approved.
  • Loading branch information
xitij2000 authored Jul 14, 2020
2 parents 7aff721 + cd7f39a commit ac4ccab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion completion_aggregator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

from __future__ import absolute_import, unicode_literals

__version__ = '2.2.3'
__version__ = '2.2.4'

default_app_config = 'completion_aggregator.apps.CompletionAggregatorAppConfig' # pylint: disable=invalid-name
2 changes: 2 additions & 0 deletions completion_aggregator/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def register():
"""
post_save.connect(completion_updated_handler, sender=compat.get_aggregated_model())

if not getattr(settings, 'ENABLE_COURSE_ACTIVITY_SIGNALS', False):
return
try:
from xmodule.modulestore.django import SignalHandler
except ImportError:
Expand Down

0 comments on commit ac4ccab

Please sign in to comment.