This commit is contained in:
@@ -307,7 +307,8 @@ def search_data(query):
|
||||
"_id": hit.meta.id,
|
||||
"writer_id": hit.writer_id,
|
||||
"data": hit.data,
|
||||
"image": hit.image
|
||||
"image": hit.image,
|
||||
"time": getattr(hit, "time", None),
|
||||
})
|
||||
|
||||
return results
|
||||
@@ -328,7 +329,8 @@ def search_all():
|
||||
"_id": hit.meta.id,
|
||||
"writer_id": hit.writer_id,
|
||||
"data": hit.data,
|
||||
"image": hit.image
|
||||
"image": hit.image,
|
||||
"time": getattr(hit, "time", None),
|
||||
})
|
||||
|
||||
return results
|
||||
@@ -435,7 +437,8 @@ def search_by_any_field(keyword):
|
||||
"_id": hit.meta.id,
|
||||
"writer_id": hit.writer_id,
|
||||
"data": hit.data,
|
||||
"image": hit.image
|
||||
"image": hit.image,
|
||||
"time": getattr(hit, "time", None),
|
||||
})
|
||||
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user