Skip to content

Commit

Permalink
Use eaasi_uvi_client PyPI package
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 18, 2022
1 parent efcbe3d commit 8019e64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 126 deletions.
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ django-modeltranslation==0.16.1
django-npm==1.0.0
djangorestframework==3.12.2
django-widget-tweaks==1.4.8
eaasi-uvi-client==0.1.0
elasticsearch==7.13.0
elasticsearch-dsl==7.3.0 # pyup: <8.0
envparse==0.2.0
Expand Down
124 changes: 0 additions & 124 deletions scope/eaas_uvi.py

This file was deleted.

4 changes: 2 additions & 2 deletions scope/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
from django.shortcuts import redirect
from django.shortcuts import render
from django.utils.translation import gettext as _
from eaasi_uvi_client import EaaSIUVIClient, ResultNotFound

from search.helpers import add_digital_file_aggs
from search.helpers import add_digital_file_filters
from search.helpers import add_query_to_search

from .eaas_uvi import EaaSUVIClient, ResultNotFound
from .forms import ContentForm
from .forms import DeleteByDublinCoreForm
from .forms import DublinCoreSettingsForm
Expand Down Expand Up @@ -703,7 +703,7 @@ def recommend_dip_environments(request, pk):
# With a real DIP, how do we make sure that EaaSI is basing its
# recommendations on the actual digital objects, and not e.g. the METS?
DATA_URL = "https://github.com/tw4l/sample-data/blob/main/fmt-38.zip?raw=true"
eaas_client = EaaSUVIClient(
eaas_client = EaaSIUVIClient(
base_url=django_settings.EAASI_HOST,
data_url=DATA_URL
)
Expand Down

0 comments on commit 8019e64

Please sign in to comment.