Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frame search bug #2

Closed
kpurdon opened this issue May 4, 2014 · 1 comment
Closed

frame search bug #2

kpurdon opened this issue May 4, 2014 · 1 comment
Labels

Comments

@kpurdon
Copy link
Contributor

kpurdon commented May 4, 2014

When I load the picker and then search for 20060530_01, I get the following error. The inputs look correct to me.

K>> obj.cur_map_pref_settings.system

ans =

rds

K>> ops_param.properties

ans =

search_str: '20060530_01'

  location: 'arctic'

[status,data] = opsGetFrameSearch(obj.cur_map_pref_settings.system,ops_param);

Error using jsonResponseDecode (line 51)

"<type 'exceptions.IndexError'> ERROR IN /var/django/ops/ops/views.py/getFrameSearch AT LINE 1947::

ERROR: list index out of range"

Error in opsGetFrameSearch (line 48)

[status,decodedJson] = jsonResponseDecode(jsonResponse);

Error in imb.mapwin/search_callback (line 16)

[status,data] = opsGetFrameSearch(obj.cur_map_pref_settings.system,ops_param);

Error in imb.mapwin/create_ui>@(varargin)obj.search_callback(varargin{:}) (line 113)

set(obj.top_panel.searchPB,'Callback',@obj.search_callback);

@kpurdon kpurdon added the bug label May 4, 2014
@kpurdon kpurdon closed this as completed May 4, 2014
@kpurdon
Copy link
Contributor Author

kpurdon commented May 4, 2014

    # get any frame objects that match the search string
    framesObj = models.frames.objects.filter(name__istartswith=inSearchStr,segment__season__location__name=inLocationName).order_by('pk')

    # if there are search results get the first return
    if framesObj.exist():
        framesObj = framesObj[0]
    else:
        return utility.response(2,'WARNING: NO FRAMES MATCH YOUR SEARCH'.{})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant