res = [ ]
for x in where:
- for p in self.plugins.get(x, [ ]):
- res.append(p)
- return res
+ res.extend(self.plugins.get(x, [ ]))
+
+ return res
def getPluginsForMenu(self, menuid):
res = [ ]
wakeup = -1
for p in self.pluginList:
current = p.getWakeupTime()
- if current > -1 and wakeup < current:
+ if current > -1 and (wakeup > current or wakeup == -1):
wakeup = current
return int(wakeup)