kopia lustrzana https://github.com/inkstitch/inkstitch
multiple int param is expected to return int not str (#3102)
rodzic
fb3568342b
commit
1b09fdbddb
|
@ -146,7 +146,7 @@ class EmbroideryElement(object):
|
|||
|
||||
# returns an array of multiple space separated int values
|
||||
@cache
|
||||
def get_multiple_int_param(self, param, default="0"):
|
||||
def get_multiple_int_param(self, param, default=0):
|
||||
params = self.get_param(param, default).split(" ")
|
||||
try:
|
||||
params = [int(param) for param in params if param]
|
||||
|
|
|
@ -101,7 +101,7 @@ class Stroke(EmbroideryElement):
|
|||
default=0,
|
||||
sort_index=3)
|
||||
def bean_stitch_repeats(self):
|
||||
return self.get_multiple_int_param("bean_stitch_repeats", "0")
|
||||
return self.get_multiple_int_param("bean_stitch_repeats", 0)
|
||||
|
||||
@property
|
||||
@param('running_stitch_length_mm',
|
||||
|
|
Ładowanie…
Reference in New Issue