def get_sign(self, lesson_id): ctx = execjs.compile(tools.get_sign_js()) return ctx.call("sign", str(lesson_id))
def sign(self): ctx = execjs.compile(tools.get_sign_js()) return ctx.call("sign", self.lesson_id)