Switch ujson to orjson

This commit is contained in:
2022-09-30 07:22:22 +01:00
parent 45b8483366
commit d8981378bd

View File

@@ -1,7 +1,7 @@
import urllib
import uuid
import ujson
import orjson
from django.conf import settings
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
@@ -95,7 +95,7 @@ def make_graph(results):
"date": date,
}
)
return ujson.dumps(graph)
return orjson.dumps(graph)
def drilldown_search(request, return_context=False, template=None):