数据管理添加时间的显示和统计报表的功能[0.2.7.6][ci]
All checks were successful
CI / docker-ci (push) Successful in 35s

This commit is contained in:
DSQ
2026-03-19 16:38:16 +08:00
parent 5e38ebf856
commit fe7f08ed1c
4 changed files with 476 additions and 10 deletions

View File

@@ -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