Skip to content

Commit

Permalink
Fix after testing better
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoistinen committed May 26, 2015
1 parent afccf04 commit 65e91ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions menus/menu_pool.py
Expand Up @@ -291,10 +291,10 @@ def get_menus_by_attribute(self, name, value):
classes = []
for menu in self.menus.items():
if hasattr(menu[1], name) and getattr(menu[1], name, None) == value:
menu_class = menu[1].__class__.__name__
if menu_class not in classes:
classes.append(menu_class)
if menu[1].__name__ not in classes:
classes.append(menu[1].__name__)
found.append((menu[0], menu[1].name))
print(classes, found)
return found

def get_nodes_by_attribute(self, nodes, name, value):
Expand Down

0 comments on commit 65e91ea

Please sign in to comment.