def execute_thread(self): available = core.available_plugins() local_plugins = core.local_plugins() updates = [] for lp in local_plugins: if lp in available: ava = available.pop(lp) if float(ava[1]) > float(local_plugins[lp][1]): updates += [[lp, ava[0], ava[1], ava[2]]] available = [[k, available[k][0], available[k][1], available[k][2]] for k in available] local_plugins = [[k, local_plugins[k][0], local_plugins[k][1], local_plugins[k][2]] for k in local_plugins] self._manager._available = available self._manager._locals = local_plugins self._manager._updates = updates
def execute_thread(self): available = core.available_plugins() local_plugins = core.local_plugins() updates = [] for lp in local_plugins: if lp in available: ava = available.pop(lp) if float(ava[1]) > float(local_plugins[lp][1]): updates += [[lp, ava[0], ava[1], ava[2]]] available = [[k, available[k][0], available[k][1], available[k][2]] for k in available] local_plugins = [[ k, local_plugins[k][0], local_plugins[k][1], local_plugins[k][2] ] for k in local_plugins] self._manager._available = available self._manager._locals = local_plugins self._manager._updates = updates
def reset_installed_plugins(self): local_plugins = core.local_plugins() local_plugins = [[k, local_plugins[k][0], local_plugins[k][1], local_plugins[k][2]] for k in local_plugins] self.installedWidget.reset_table(local_plugins)
def reset_installed_plugins(self): local_plugins = core.local_plugins() local_plugins = [[ k, local_plugins[k][0], local_plugins[k][1], local_plugins[k][2] ] for k in local_plugins] self.installedWidget.reset_table(local_plugins)