Skip to content

Commit

Permalink
fix: event_tracking_backends_config must use the provided plugin sett…
Browse files Browse the repository at this point in the history
…ings

instead of global django.conf.settings
  • Loading branch information
pomegranited committed Jun 13, 2024
1 parent a415ee7 commit 47c25fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions event_routing_backends/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def plugin_settings(settings):
)

settings.EVENT_TRACKING_BACKENDS.update(event_tracking_backends_config(
settings,
settings.EVENT_TRACKING_BACKENDS_ALLOWED_XAPI_EVENTS,
settings.EVENT_TRACKING_BACKENDS_ALLOWED_CALIPER_EVENTS,
))
4 changes: 1 addition & 3 deletions event_routing_backends/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

from typing import List

from django.conf import settings


def event_tracking_backends_config(allowed_xapi_events: List[str], allowed_caliper_events: List[str]) -> dict:
def event_tracking_backends_config(settings, allowed_xapi_events: List[str], allowed_caliper_events: List[str]) -> dict:
"""
Return the recommended settings.EVENT_TRACKING_BACKENDS configuration.
Expand Down

0 comments on commit 47c25fb

Please sign in to comment.