0xDB: Server error when trying to change poster frame #3007

Closed
opened 2017-02-17 13:24:25 +00:00 by rlx · 1 comment
Owner

setPosterFrame({"id":"0x56CA4335E3F5A295","position":"12"})


Traceback (most recent call last):

  File "/srv/pandora/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)

  File "/srv/pandora/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api
    response = f(request, data)

  File "/srv/pandora/pandora/item/views.py", line 644, in setPosterFrame
    item.save()

  File "/srv/pandora/pandora/item/models.py", line 429, in save
    self.json = self.get_json()

  File "/srv/pandora/pandora/item/models.py", line 649, in get_json
    frames = self.get_frames()

  File "/srv/pandora/pandora/item/models.py", line 552, in get_frames
    if pos < 0:

TypeError: unorderable types: str() < int()


<WSGIRequest: POST '/api/'>

``` setPosterFrame({"id":"0x56CA4335E3F5A295","position":"12"}) ``` ``` Traceback (most recent call last): File "/srv/pandora/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 149, in get_response response = self.process_exception_by_middleware(e, request) File "/srv/pandora/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 147, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api response = f(request, data) File "/srv/pandora/pandora/item/views.py", line 644, in setPosterFrame item.save() File "/srv/pandora/pandora/item/models.py", line 429, in save self.json = self.get_json() File "/srv/pandora/pandora/item/models.py", line 649, in get_json frames = self.get_frames() File "/srv/pandora/pandora/item/models.py", line 552, in get_frames if pos < 0: TypeError: unorderable types: str() < int() <WSGIRequest: POST '/api/'> ```
rlx added the
backend
label 2017-02-17 13:24:25 +00:00
rlx added this to the 14.04 milestone 2017-02-17 13:24:25 +00:00
j was assigned by rlx 2017-02-17 13:24:25 +00:00
rlx added the
normal
defect
labels 2017-02-17 13:24:25 +00:00
Owner

In fb74fcc/pandora:

#!CommitTicketReference repository="pandora" revision="fb74fcc5a727b72fcca134cd3ada55516e457b23"
make sure position is float, fixes #3007
In [fb74fcc/pandora](https://code.0x2620.org/0x2620/pandora/commit/fb74fcc5a727b72fcca134cd3ada55516e457b23): ``` #!CommitTicketReference repository="pandora" revision="fb74fcc5a727b72fcca134cd3ada55516e457b23" make sure position is float, fixes #3007 ```
0x2620 added the
fixed
label 2017-02-17 14:40:58 +00:00
j closed this issue 2017-02-17 14:40:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#3007
No description provided.