Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hard dependency on psycopg2 #2126

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion physionet-django/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from functools import reduce

from django.conf import settings
from django.contrib.postgres.search import SearchQuery, SearchVector, SearchRank
from django.db.models import Case, Count, IntegerField, Q, Sum, Value, When
from django.http import Http404
from django.shortcuts import redirect, render, reverse
Expand Down Expand Up @@ -63,6 +62,11 @@ def get_content(resource_type, orderby, direction, search_term):


def get_content_postgres_full_text_search(resource_type, orderby, direction, search_term):
from django.contrib.postgres.search import (
SearchQuery,
SearchRank,
SearchVector,
)

# Split search term by whitespace or punctuation
if search_term:
Expand Down
Loading