Skip to content

Commit 6a675e4

Browse files
authored
Merge pull request #60 from will-moore/searchengine_container_data_url
Searchengine container data url
2 parents 72294b3 + cef6db5 commit 6a675e4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

idr_gallery/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,18 @@ def study_page(request, idrid, format="html", conn=None, **kwargs):
180180
base_url = settings.BASE_URL
181181
else:
182182
base_url = request.build_absolute_uri(reverse('index'))
183-
bff_url = f"{base_url}searchengine/api/v1/resources/container_bff_data/"
183+
bff_url = f"{base_url}searchengine/api/v1/resources/container_data/"
184184
containers = []
185185
for obj in objs:
186186
desc = obj.description if obj.description is not None else ""
187187
for token in ["Screen", "Project", "Experiment", "Study"]:
188188
if f"{token} Description" in desc:
189189
desc = desc.split(f"{token} Description", 1)[1].strip()
190190
otype = "project" if obj.OMERO_CLASS == "Project" else "screen"
191-
study_bff_url = f"{bff_url}?container_name={obj.name}\
192-
&container_type={otype}"
191+
study_bff_url = (f"{bff_url}?container_name={obj.name}" +
192+
f"&container_type={otype}")
193193
# https://idr-testing.openmicroscopy.org/searchengine//api/v1/resources/
194-
# container_bff_data/?container_name=idr0164-alzubi-hdbr%2FexperimentA&
194+
# container_data/?container_name=idr0164-alzubi-hdbr%2FexperimentA&
195195
# container_type=project
196196

197197
containers.append({

0 commit comments

Comments
 (0)