Skip to content
Snippets Groups Projects
Commit 6a850a5c authored by inso's avatar inso
Browse files

Fix search in wot tab

parent 10baa721
No related branches found
No related tags found
No related merge requests found
...@@ -244,6 +244,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): ...@@ -244,6 +244,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
else: else:
self.reset() self.reset()
@asyncify
@asyncio.coroutine
def search(self): def search(self):
""" """
Search nodes when return is pressed in combobox lineEdit Search nodes when return is pressed in combobox lineEdit
...@@ -252,11 +254,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): ...@@ -252,11 +254,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
if len(text) < 2: if len(text) < 2:
return False return False
try: response = yield from self.community.bma_access.future_request(bma.wot.Lookup, {'search': text})
response = self.community.simple_request(bma.wot.Lookup, {'search': text})
except Exception as e:
logging.debug('bma.wot.Lookup request error : ' + str(e))
return False
nodes = {} nodes = {}
for identity in response['results']: for identity in response['results']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment