From 489142d13778665800db434da0e38d727e536a58 Mon Sep 17 00:00:00 2001 From: Marcio Fernandes Date: Thu, 20 Jan 2022 13:36:13 +0000 Subject: [PATCH] . --- onlyone/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onlyone/__init__.py b/onlyone/__init__.py index 921ee82..7bed210 100644 --- a/onlyone/__init__.py +++ b/onlyone/__init__.py @@ -81,7 +81,6 @@ class Manager: return self.__current["key"] def current(self, key): - item = None if key!=None: for x in self.__processes: @@ -92,7 +91,7 @@ class Manager: self._current = None return - onlyone(item["cmd"], [x for x in self.__processes if x["key"]!=item["key"]]) + onlyone(item["cmd"], [x.cmd for x in self.__processes if x["key"]!=item["key"]]) self._current = item["key"] \ No newline at end of file