1
0
Fork 0
mirror of synced 2024-05-03 04:02:28 +12:00

Convert to int to allow removal

This commit is contained in:
phxntxm 2019-02-03 15:49:41 -06:00
parent 2ce001784f
commit 66148d90f2

View file

@ -377,6 +377,8 @@ WHERE
async def _handle_remove_custom_battles(self, ctx, setting=None):
if setting is None or not setting.isdigit():
raise WrongSettingType("Please provide the number of the custom battle you want to remove")
else:
setting = int(setting)
query = """
UPDATE
@ -391,6 +393,8 @@ WHERE
async def _handle_remove_custom_hugs(self, ctx, setting=None):
if setting is None or not setting.isdigit():
raise WrongSettingType("Please provide the number of the custom hug you want to remove")
else:
setting = int(setting)
query = """
UPDATE