Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
zawan-ila committed May 13, 2024
1 parent 1bd98c8 commit 7d1a365
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions course_discovery/apps/api/v1/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
from course_discovery.apps.course_metadata.choices import ProgramStatus
from course_discovery.apps.course_metadata.models import Person

from course_discovery.apps.course_metadata.models import *

from course_discovery.apps.course_metadata.search_indexes import documents as search_documents
from course_discovery.apps.course_metadata.search_indexes import serializers as search_indexes_serializers
from course_discovery.apps.course_metadata.search_indexes.constants import LEARNER_PATHWAY_FEATURE_PARAM
Expand Down Expand Up @@ -378,6 +376,9 @@ def get(self, request, *_args, **_kwargs):
type: List of string
"""
query = request.query_params.get('q')
import pdb
pdb.set_trace()

if not query:
raise ValidationError("The 'q' querystring parameter is required for searching.")
words = query.split()
Expand Down

0 comments on commit 7d1a365

Please sign in to comment.