fix image_api_get_all api call;

This commit is contained in:
Marco Zeisler
2021-01-11 18:53:40 +01:00
parent e2a09b465d
commit f0174aadc7
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -1,5 +1,4 @@
from app_be.views.mongo_db import MongoManager
from django.http import JsonResponse
from app_be.services.hashservice import create_sha512
@@ -20,12 +19,15 @@ class MongoDBService:
db = instance.AIC
col = db.metadata
resp = []
try:
for resp in col.find():
print(resp)
for meta in col.find():
del meta['_id']
resp.append(meta)
except:
print("Could not find Metadata")
return resp
@staticmethod