Special case assignee typeahead in personal projects

This commit is contained in:
2015-08-06 22:30:09 -07:00
parent 7f76ebd441
commit 6664d299b9

View File

@@ -171,12 +171,17 @@ class CmdAsana:
def userTypeAhead(self, text, callback): def userTypeAhead(self, text, callback):
def runInThread(): def runInThread():
users = self.client.workspaces.typeahead(self.state['workspace_id'], if self.state['workspace_id'] != PERSONAL:
{ users = self.client.workspaces \
'type': 'user', .typeahead(self.state['workspace_id'],
'query': text, {
'count': 5 'type': 'user',
}) 'query': text,
'count': 5
})
else:
users = [self.me]
callback(users) callback(users)
self.loop.draw_screen() self.loop.draw_screen()