google-code-export / amcat

Automatically exported from code.google.com/p/amcat
0 stars 0 forks source link

actions/query.py broken #608

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since recently (last time I used it was about 2 weeks ago) the Query action 
(/amcat/scripts/actions/query.py) does not work anymore. Probably due to 
changes in amcatsolr.py

{"error-class": "KeyError", "error-traceback": "Traceback (most recent call 
last):
  File \"/srv/amcat3.1/amcat/api/action.py\", line 54, in handler
    result = script(request.POST).run(None)
  File \"/srv/amcat3.1/amcat/amcat/scripts/actions/query.py\", line 44, in run
    filters = get_filters(self.options)
  File \"/srv/amcat3.1/amcat/amcat/tools/amcatsolr.py\", line 202, in get_filters
    return filter(bool, _get_filters(cleaned_data))
  File \"/srv/amcat3.1/amcat/amcat/tools/amcatsolr.py\", line 197, in _get_filters
    yield \" OR \".join(map(\"mediumid:{.id}\".format, cleaned_data[\"mediums\"]))\nKeyError: u'mediums'
", "error-message": "u'mediums'"}

Original issue reported on code.google.com by kasperwe...@gmail.com on 7 Oct 2013 at 8:04

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7f29bc687f42.

Original comment by Martijn....@gmail.com on 8 Oct 2013 at 9:59

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 293eff737932.

Original comment by Martijn....@gmail.com on 8 Oct 2013 at 9:59