Skip to content

Activities TypeError: '<' not supported between instances of 'datetime.datetime' and 'str' #652

@will-moore

Description

@will-moore

from https://qa.openmicroscopy.org/qa/feedback/91968/

I wonder if this could be caused by some activities being from before and after the change at https://github.com/ome/omero-web/pull/637/files#diff-83195df10aab64309a022de64b165eb4e5b76f4b8ec5fd70a2dbfbbbe02679dbR1201

Probably temporary - Unfortunately no contact details for the QA report

cc @knabar

< DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Traceback (most recent call last):

File "/home/omero-web/.virtualenvs/web/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^

File "/home/omero-web/.virtualenvs/web/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/omero-web/.virtualenvs/web/lib/python3.11/site-packages/omeroweb/decorators.py", line 538, in wrapped
retval = f(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/omero-web/.virtualenvs/web/lib/python3.11/site-packages/omeroweb/decorators.py", line 597, in wrapper
context = f(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/omero-web/.virtualenvs/web/lib/python3.11/site-packages/omeroweb/webclient/views.py", line 3975, in activities
jobs.sort(key=lambda x: x["start_time"], reverse=True)

TypeError: '<' not supported between instances of 'datetime.datetime' and 'str'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions