You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
history page elements refuse to function since commit 14a7845
commit 1b0a21c broke it even further, history page won't even render now.
To Reproduce
Go to history page to marvel at its non-functionality
Expected behavior
to work like to work exactly as it did on commit: 70f9e90 before it broke.
Screenshots
Medusa (please complete the following information):
2024-03-18 03:49:23 ERROR TORNADO :: [1b0a21c] Uncaught exception in APIv2: AttributeError("'list' object has no attribute 'get'")
Request: GET /api/v2/history?page=1&limit=50&sort=[%7B%22field%22:%22actionDate%22,%22type%22:%22desc%22%7D] (127.0.0.1)
Traceback (most recent call last):
File "/Users/ovidijus/Apps/Medusa/ext/tornado/web.py", line 1704, in _execute
result = await result
^^^^^^^^^^^^
File "/Users/ovidijus/Apps/Medusa/ext/tornado/gen.py", line 769, in run
yielded = self.gen.throw(*exc_info) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ovidijus/Apps/Medusa/medusa/server/api/v2/base.py", line 64, in async_call
content = yield IOLoop.current().run_in_executor(executor, prepared)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ovidijus/Apps/Medusa/ext/tornado/gen.py", line 762, in run
value = future.result()
^^^^^^^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ovidijus/Apps/Medusa/medusa/server/api/v2/history.py", line 139, in get
field = sort[0].get('field').lower()
^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
Describe the bug
history page elements refuse to function since commit 14a7845
commit 1b0a21c broke it even further, history page won't even render now.
To Reproduce
Go to history page to marvel at its non-functionality
Expected behavior
to work like to work exactly as it did on commit: 70f9e90 before it broke.
Screenshots
Medusa (please complete the following information):
Debug logs (at least 50 lines):
Additional context
Full Logs:
Logs.zip
The text was updated successfully, but these errors were encountered: