kopia lustrzana https://github.com/inkstitch/inkstitch
add has_command()
rodzic
422e770ead
commit
61983b615b
|
@ -214,6 +214,10 @@ class EmbroideryElement(object):
|
|||
def get_commands(self, command):
|
||||
return [c for c in self.commands if c.command == command]
|
||||
|
||||
@cache
|
||||
def has_command(self, command):
|
||||
return len(self.get_commands(command)) > 0
|
||||
|
||||
@cache
|
||||
def get_command(self, command):
|
||||
commands = self.get_commands(command)
|
||||
|
|
Ładowanie…
Reference in New Issue