スラッシュコマンドでワンタイムパスワードが要求できないバグを修正

This commit is contained in:
suti7yk5032 2024-09-26 21:15:47 +09:00
parent 421b1b48c7
commit aa9379b2a6

View file

@ -648,7 +648,7 @@ class DL():
def pc_onetime_gen(self, **kwargs):
if kwargs.get("max_count") == None:
max_count = 1
elif kwargs.get("max_count").isdecimal():
elif isinstance(kwargs.get("max_count"), int):
max_count = int(kwargs.get("max_count"))
else:
max_count = 1
@ -700,7 +700,7 @@ class DL():
def device_onetime_gen(self, **kwargs):
if kwargs.get("max_count") == None:
max_count = 1
elif kwargs.get("max_count").isdecimal():
elif isinstance(kwargs.get("max_count"), int):
max_count = int(kwargs.get("max_count"))
else:
max_count = 1