BugFix: Selects full range of clients when given ("N-M")
Previously selected from N to (M-1)
This commit is contained in:
@@ -202,7 +202,7 @@ class Scanner(object):
|
|||||||
if '-' in choice:
|
if '-' in choice:
|
||||||
# User selected a range
|
# User selected a range
|
||||||
(lower,upper) = [int(x) - 1 for x in choice.split('-')]
|
(lower,upper) = [int(x) - 1 for x in choice.split('-')]
|
||||||
for i in xrange(lower, min(len(self.targets), upper)):
|
for i in xrange(lower, min(len(self.targets), upper + 1)):
|
||||||
chosen_targets.append(self.targets[i])
|
chosen_targets.append(self.targets[i])
|
||||||
elif choice.isdigit():
|
elif choice.isdigit():
|
||||||
choice = int(choice) - 1
|
choice = int(choice) - 1
|
||||||
|
|||||||
Reference in New Issue
Block a user