Spaces:
Runtime error
Runtime error
Commit
·
bbe9324
1
Parent(s):
828c90a
include message body if available
Browse files
app.py
CHANGED
|
@@ -15,7 +15,10 @@ def list_me(matches):
|
|
| 15 |
for match in matches:
|
| 16 |
result += '<li><a target="_blank" href="https://reddit.com/r/AskNYC/comments/' + match['id'] + '">'
|
| 17 |
result += match['metadata']['question']
|
| 18 |
-
result += '</a
|
|
|
|
|
|
|
|
|
|
| 19 |
return result
|
| 20 |
|
| 21 |
|
|
|
|
| 15 |
for match in matches:
|
| 16 |
result += '<li><a target="_blank" href="https://reddit.com/r/AskNYC/comments/' + match['id'] + '">'
|
| 17 |
result += match['metadata']['question']
|
| 18 |
+
result += '</a>'
|
| 19 |
+
if 'body' in match['metadata']:
|
| 20 |
+
result += '<br/>' + match['metadata']['body']
|
| 21 |
+
result += '</li>'
|
| 22 |
return result
|
| 23 |
|
| 24 |
|