Fixed formatting.
This commit is contained in:
parent
146ae3c279
commit
4069dd21a3
89 changed files with 615 additions and 496 deletions
|
@ -3,7 +3,7 @@ from util import hook, web, text
|
|||
|
||||
@hook.command
|
||||
def answer(inp):
|
||||
"answer <query> -- find the answer to a question on Yahoo! Answers"
|
||||
"""answer <query> -- find the answer to a question on Yahoo! Answers"""
|
||||
|
||||
query = "SELECT Subject, ChosenAnswer, Link FROM answers.search WHERE query=@query LIMIT 1"
|
||||
result = web.query(query, {"query": inp.strip()}).one()
|
||||
|
|
Reference in a new issue