backend fix passing id to paginated docs

This commit is contained in:
fadingNA
2024-11-10 14:38:51 -05:00
parent e00c6f2c14
commit b19e9cae23

View File

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