Skip to content

Commit

Permalink
get selected ids from node attributes
Browse files Browse the repository at this point in the history
fix #6
  • Loading branch information
olibia committed Sep 13, 2020
1 parent 9358db2 commit 27880f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate_palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def get_node_prop(self, node, property):
return style.get(property, 'none')

def get_node_index(self, args):
id, node = args
node = args[1]
id = node.attrib.get('id')

return self.options.ids.index(id)

def get_formatted_color(self, color):
Expand Down

0 comments on commit 27880f5

Please sign in to comment.