Switch ujson to orjson

This commit is contained in:
Mark Veidemanis 2022-09-30 07:22:22 +01:00
parent 45b8483366
commit d8981378bd
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 2 deletions

View File

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