need to check for isinstance(int)
This commit is contained in:
parent
5567512f73
commit
ba938f1746
|
@ -189,7 +189,8 @@ class Result:
|
|||
|
||||
if what == 'increments':
|
||||
choice = [c if isinstance(c,str) and c.startswith('increment_') else
|
||||
self.increments[c] if c<0 else f'increment_{c}' for c in choice]
|
||||
self.increments[c] if isinstance(c,int) and c<0 else
|
||||
f'increment_{c}' for c in choice]
|
||||
elif what == 'times':
|
||||
what = 'increments'
|
||||
if choice == ['*']:
|
||||
|
|
Loading…
Reference in New Issue