From c1cbdb822cd2c1819f1a2004b3827593659e69a9 Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Fri, 6 Oct 2023 15:57:49 +0500 Subject: [PATCH] fix: problems.py reverted --- analytics_data_api/v0/urls/problems.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/analytics_data_api/v0/urls/problems.py b/analytics_data_api/v0/urls/problems.py index 9f2e488c..b11ebf47 100644 --- a/analytics_data_api/v0/urls/problems.py +++ b/analytics_data_api/v0/urls/problems.py @@ -1,6 +1,6 @@ import re -from django.urls import path, re_path +from django.urls import re_path from analytics_data_api.v0.views import problems as views @@ -12,9 +12,9 @@ ] urlpatterns = [ - path('/sequential_open_distribution/', - views.SequentialOpenDistributionView.as_view(), - name='sequential_open_distribution'), + re_path(r'^(?P.+)/sequential_open_distribution/$', + views.SequentialOpenDistributionView.as_view(), + name='sequential_open_distribution'), ] for path, view, name in PROBLEM_URLS: