Modulelist.get

This commit is contained in:
enkore 2013-10-23 21:36:20 +02:00
parent 467339e905
commit 32e68eb14d

View File

@ -73,7 +73,7 @@ class ModuleList(collections.UserList):
super().append(module) super().append(module)
return module return module
def get_module_by_id(self, find_id): def get(self, find_id):
find_id = int(find_id) find_id = int(find_id)
for module in self: for module in self:
if id(module) == find_id: if id(module) == find_id: