mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
backend fix passing id to paginated docs
This commit is contained in:
@@ -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