Skip to content

Commit

Permalink
fix: extra param in operation
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Feb 25, 2021
1 parent 0c0bf84 commit 5d3a5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/appier_extras/parts/admin/models/account.py
Expand Up @@ -918,7 +918,7 @@ def remove_role_s(self, name):
self.save()

@appier.operation(name = "Fix Roles", level = 2)
def fix_children_s(self, name):
def fix_children_s(self):
self.roles = [role for role in self.roles if role and hasattr(role, "tokens_a")]
self.save()

Expand Down
2 changes: 1 addition & 1 deletion src/appier_extras/parts/admin/models/role.py
Expand Up @@ -204,7 +204,7 @@ def remove_child_s(self, name):
self.save()

@appier.operation(name = "Fix Children", level = 2)
def fix_children_s(self, name):
def fix_children_s(self):
self.children = [child for child in self.children if child and hasattr(child, "tokens_a")]
self.save()

Expand Down

0 comments on commit 5d3a5e0

Please sign in to comment.