Skip to content

Commit

Permalink
Remove unused variables to fix tox tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knabar committed May 7, 2024
1 parent ade7fa1 commit cdfac8b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ def _render_thumbnail(request, iid, w=None, h=None, conn=None, _defcb=None, **kw
@param h: Thumbnail max height
@return: http response containing jpeg
"""
server_id = request.session["connector"]["server_id"]

server_settings = request.session.get("server_settings", {}).get("browser", {})
defaultSize = server_settings.get("thumb_default_size", 96)

Expand All @@ -386,7 +384,6 @@ def _render_thumbnail(request, iid, w=None, h=None, conn=None, _defcb=None, **kw
size = (int(w), int(h))
if size == (defaultSize,):
direct = False
user_id = conn.getUserId()
z = getIntOrDefault(request, "z", None)
t = getIntOrDefault(request, "t", None)
rdefId = getIntOrDefault(request, "rdefId", None)
Expand Down Expand Up @@ -1151,7 +1148,6 @@ def render_ome_tiff(request, ctx, cid, conn=None, **kwargs):
if dryrun is True, returns count of images that would
be exported
"""
server_id = request.session["connector"]["server_id"]
imgs = []
if ctx == "p":
obj = conn.getObject("Project", cid)
Expand Down Expand Up @@ -1621,7 +1617,6 @@ def plateGrid_json(request, pid, field=0, conn=None, **kwargs):
prefix = kwargs.get("thumbprefix", "webgateway_render_thumbnail")
thumbsize = getIntOrDefault(request, "size", None)
logger.debug(thumbsize)
server_id = kwargs["server_id"]

def get_thumb_url(iid):
if thumbsize is not None:
Expand Down Expand Up @@ -2247,7 +2242,6 @@ def copy_image_rdef_json(request, conn=None, **kwargs):
@return: json dict of Boolean:[Image-IDs]
"""

server_id = request.session["connector"]["server_id"]
json_data = False

fromid = request.GET.get("fromid", None)
Expand Down
1 change: 0 additions & 1 deletion test/unit/test_webgateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8

import time
import os
import pytest
from django.http import HttpResponseBadRequest
Expand Down

0 comments on commit cdfac8b

Please sign in to comment.