Changeset View
Changeset View
Standalone View
Standalone View
swh/web/misc/coverage.py
# Copyright (C) 2018-2022 The Software Heritage developers | # Copyright (C) 2018-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from collections import Counter, defaultdict | from collections import Counter, defaultdict | ||||
from typing import Any, Dict, List, Tuple | from typing import Any, Dict, List, Tuple | ||||
from urllib.parse import urlparse | from urllib.parse import urlparse | ||||
from django.conf.urls import url | |||||
from django.http.request import HttpRequest | from django.http.request import HttpRequest | ||||
from django.http.response import HttpResponse | from django.http.response import HttpResponse | ||||
from django.shortcuts import render | from django.shortcuts import render | ||||
from django.urls import re_path as url | |||||
from django.views.decorators.cache import never_cache | from django.views.decorators.cache import never_cache | ||||
from django.views.decorators.clickjacking import xframe_options_exempt | from django.views.decorators.clickjacking import xframe_options_exempt | ||||
from swh.scheduler.model import SchedulerMetrics | from swh.scheduler.model import SchedulerMetrics | ||||
from swh.web.common import archive | from swh.web.common import archive | ||||
from swh.web.common.utils import ( | from swh.web.common.utils import ( | ||||
django_cache, | django_cache, | ||||
get_deposits_list, | get_deposits_list, | ||||
▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines |