mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-12 12:13:20 +00:00
backend fix passing id to paginated docs
This commit is contained in:
1 parent
e00c6f2c14
commit
b19e9cae23
1 file changed
+3
-1
@@ -465,7 +465,9 @@ class PaginatedSources(Resource):
|
||||
|
||||
paginated_docs = []
|
||||
for doc in documents:
|
||||
doc["_id"] = str(doc["_id"])
|
||||
print(doc)
|
||||
doc["id"] = str(doc["_id"])
|
||||
del doc["_id"]
|
||||
paginated_docs.append(doc)
|
||||
|
||||
response = {
|
||||
|
||||
Reference in new issue
Block a user