BugFix: Selects full range of clients when given ("N-M")

Previously selected from N to (M-1)
This commit is contained in:
derv82
2018-03-10 14:36:40 -05:00
parent 82f0a2ae96
commit 0a81774c59

View File

@@ -202,7 +202,7 @@ class Scanner(object):
if '-' in choice:
# User selected a range
(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])
elif choice.isdigit():
choice = int(choice) - 1