Modulelist.get
This commit is contained in:
parent
467339e905
commit
32e68eb14d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user