method hack
This commit is contained in:
@@ -16,7 +16,7 @@ class EventFactory:
|
||||
|
||||
def allEvents(self):
|
||||
methods = inspect.getmembers(self, predicate=inspect.ismethod)
|
||||
createMethods = [method[1] for method in methods if 'create' in method]
|
||||
createMethods = [method[1] for method in methods if 'create' in method[0]]
|
||||
result = []
|
||||
for method in createMethods:
|
||||
result.append(method())
|
||||
|
||||
Reference in New Issue
Block a user