Merge pull request #1002 from ManishMadan2882/main

Better Error handling on /stream endpoint
This commit is contained in:
Alex
2024-06-20 20:00:55 +01:00
committed by GitHub
3 changed files with 78 additions and 34 deletions

View File

@@ -257,8 +257,8 @@ def combined_json():
}
]
# structure: name, language, version, description, fullName, date, docLink
# append data from vectors_collection
for index in vectors_collection.find({"user": user}):
# append data from vectors_collection in sorted order in descending order of date
for index in vectors_collection.find({"user": user}).sort("date", -1):
data.append(
{
"name": index["name"],