Skip to content
Permalink
Browse files

minor optimization for adding questions to resp_qs

  • Loading branch information...
Xuefeng-Zhu committed May 28, 2015
1 parent 57f49d4 commit 03ae281d95486d0174399a86e5c40e2bcae6266a
Showing with 1 addition and 2 deletions.
  1. +1 −2 app.py
3 app.py
@@ -49,8 +49,7 @@ def overflow():


resp_qs = ['Stack Overflow Top Questions for "%s"\n' % text]
for q in qs[:MAX_QUESTIONS]:
resp_qs.append(get_response_string(q))
resp_qs.extend(map(get_response_string, qs[:MAX_QUESTIONS]))

if len(resp_qs) is 1:
resp_qs.append(('No questions found. Please try a broader search or '

0 comments on commit 03ae281

Please sign in to comment.
You can’t perform that action at this time.