From d8981378bda23e8fdf595f87b4792033d44d15c8 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 30 Sep 2022 07:22:22 +0100 Subject: [PATCH] Switch ujson to orjson --- core/views/ui/drilldown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index 24153f1..5465148 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -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):