Skip to content

Commit

Permalink
Clearer results
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Spencer-Harper committed Sep 19, 2015
1 parent 07fd63c commit 16f50a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stackoverflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def search(query):
numResults = numResults + 1
question = get_question_title(stackoverflowResponse)
output_answer(url, question, answers[0], "Best answer for: ")
wf.add_item("Other Questions:", "(press TAB or ENTER to view answers)")
else:
wf.add_item(
"Question: " + re.search("/([^/]*)$", url).group(1).replace("-", " "),
"Press TAB or ENTER to view answers",
re.search("/([^/]*)$", url).group(1).replace("-", " "),
"",
copytext = url,
autocomplete = "answer:" + url,
arg = url,
Expand Down

0 comments on commit 16f50a6

Please sign in to comment.