From 74ed4851620a97b4b0e464588bf51e5eced74307 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:24:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- omeroweb/webclient/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/omeroweb/webclient/views.py b/omeroweb/webclient/views.py index b077637a66..2c88a52ca4 100755 --- a/omeroweb/webclient/views.py +++ b/omeroweb/webclient/views.py @@ -1848,16 +1848,17 @@ def load_metadata_preview(request, c_type, c_id, conn=None, share_id=None, **kwa size_x = manager.image.getSizeX() size_y = manager.image.getSizeY() - base_url = reverse('webindex') + base_url = reverse("webindex") big_image = (size_x * size_y) > (max_w * max_h) if not big_image: # if we have omero_web_zarr installed and s3 data is available, we # use that as data source for viewer via /zarr/render_image etc. try: from omero_web_zarr.views import get_zarr_s3_path + zarr_path = get_zarr_s3_path(conn, manager.image.id) if zarr_path is not None and zarr_path.startswith("http"): - base_url = reverse('omero_web_zarr_index') + base_url = reverse("omero_web_zarr_index") except ImportError: pass context["base_url"] = base_url