Skip to content
Snippets Groups Projects
Commit e70d38ec authored by Seblu's avatar Seblu
Browse files

fix delright with * index

parent 296dc4ff
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,11 @@ class Command_delright(TqlCommand):
raise cmdBadArgument()
# building list of index
try:
l = [ int(x) for x in self.args[1:] ]
l = [ int(x) for x in self.args[1:] if x != "*" ]
except ValueError as e:
raise cmdBadArgument("Indexes must be numbers")
# if all is detected
if "*" in l:
if "*" in self.args[1:]:
self.rpccall("delright", self.args[0], None)
else:
for index in l:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment