I have a simple python class and am using Auto->JS to generate teh JS
one of the class functions takes a named parameter
def move(increase = 1):
and it gets called with
It runs fine locally however running online the passed parameter ceases to be an integer and becomes an object (from console.log() printouts in the browser)
Object ( increase: 3 }
and then it all goes wrong when I try to do maths on it in the function.
Any suggestinos/work around would be much appreciated.
I would prefer to keep it as Auto->JS
I’ve tried casting it to int when calling move() but that doesn’t change anything