From b19e9cae236a4cf54abc1dc0c1a6776eda9ddf5a Mon Sep 17 00:00:00 2001 From: fadingNA Date: Sun, 10 Nov 2024 14:38:51 -0500 Subject: [PATCH] backend fix passing id to paginated docs --- application/api/user/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/api/user/routes.py b/application/api/user/routes.py index b3062005..46ed15cd 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -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 = {