Permalink
Browse files
minor optimization for adding questions to resp_qs
- Loading branch information...
Showing
with
1 addition
and
2 deletions.
-
+1
−2
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