remove arg

This commit is contained in:
JO Jr.
2024-01-27 12:28:58 -05:00
parent 3f29e56c5b
commit cdcb12f5f1
+1 -3
View File
@@ -16,13 +16,11 @@ class RandomSize:
RETURN_TYPES = ("INT","INT")
RETURN_NAMES = ("width","height")
FUNCTION = "func"
def func(self,size:str):
def func(self:str):
sizes = read_config('sizes')
rand_obj = random.random.Random()
idx = rand_obj.randint(0, len(sizes))
print(idx)
size = sizes[idx]
print(size)
x, y = [int(v) for v in size.split('x')]
return (x,y)