Skip to content
Snippets Groups Projects
Commit bdeb677e authored by Benjamin Ledel's avatar Benjamin Ledel
Browse files

Update file views.py

parent 1f4edf60
Branches
Tags
No related merge requests found
Pipeline #1610790 passed
Pipeline: FIRST_START

#1610814

    ......@@ -510,12 +510,14 @@ class GetProviderData(APIView):
    execution_start = time.time()
    cursor = collection.find(query).limit(page_size)
    print(f"Query executed in {time.time() - execution_start:.6f} seconds")
    data_time = time.time()
    data = {
    "verbs": list(set(active_verbs)),
    "statements": list(map(replace_provider_id, list(cursor))),
    "page_size": page_size,
    }
    print(f"Data mapping executed in {time.time() - data_time:.6f} seconds")
    serializer = ProviderDataSerializer(data=data)
    if serializer.is_valid():
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment