ome / omero-web

Django-based OMERO.web client
https://www.openmicroscopy.org/omero
16 stars 29 forks source link

Don't overwrite kwargs in activities json #541

Closed will-moore closed 3 months ago

will-moore commented 4 months ago

Reported at https://github.com/ome/omero-figure/issues/545

This fixes a bug introduced in #474, the kwargs parameter overwrites the kwargs from the function def activities(request, conn=None, **kwargs): causing various issues.

E.g. the detection of json template fails at https://github.com/ome/omero-web/blob/4d8d25ef7528e49cadfb5b777a47f6953c198fba/omeroweb/webclient/views.py#L3930 so the format of the JSON returned to OMERO.figure is broken, as reported above.

To test: