Skip to content

Commit

Permalink
Merge pull request #568 from dchiller/map-folios-fix
Browse files Browse the repository at this point in the history
Revert manifest call method in map folios
  • Loading branch information
dchiller committed Aug 4, 2022
2 parents 36e97db + 2be0072 commit 44ff4fa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/public/cantusdata/views/map_folios.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from django.http import HttpResponseRedirect
import re
import requests
import json
import urllib.request
import threading


Expand Down Expand Up @@ -39,11 +41,8 @@ def get(self, request, *args, **kwargs):
uris_objs = []
uris = []

proxy_port = 80 if is_production else 8001
manifest_json = requests.get(
f"http://cantus-app-1:{proxy_port}/manifest-proxy/" + manifest
)
manifest_data = manifest_json.json()
manifest_json = urllib.request.urlopen(manifest)
manifest_data = json.loads(manifest_json.read().decode("utf-8"))
for canvas in manifest_data["sequences"][0]["canvases"]:
service = canvas["images"][0]["resource"]["service"]
uri = service["@id"]
Expand Down

0 comments on commit 44ff4fa

Please sign in to comment.