reverted to comparing .index

This commit is contained in:
GammaSQ 2018-12-04 09:40:54 +01:00
parent 39c2c7bcd2
commit aebc944704
No known key found for this signature in database
GPG Key ID: D552FD2F98647C64

View File

@ -217,7 +217,9 @@ class QubesBase(qubesadmin.base.PropertyHolder):
# then search for index
if type(label) == int or label.isdigit():
return self.labels.values()[int(label)]
for i in self.labels.values():
if i.index == int(label):
return i
raise KeyError(label)