Skip to content

Commit

Permalink
fix(included_actions): Get the key values
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviml committed Feb 5, 2020
1 parent 1bc5751 commit 457f598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/controllerx/core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def initialize(self):
self.actions_mapping = self.get_actions_mapping(integration)
type_actions_mapping = self.get_type_actions_mapping()
included_actions = self.get_list(
self.args.get("actions", list(self.actions_mapping.values()))
self.args.get("actions", list(self.actions_mapping.keys()))
)
self.action_delta = self.args.get("action_delta", DEFAULT_ACTION_DELTA)

# Filter the actions
self.actions_mapping = {
key: value
for key, value in self.actions_mapping.items()
if value in included_actions
if key in included_actions
}

# Map the actions mapping with the real functions
Expand Down

0 comments on commit 457f598

Please sign in to comment.