3

The error is basically saying that the function sort() doesn't exist. I can hear you already yelling that it does, but at the moment, it really doesn't. The real problem is that you have a simple structural problem. You didn't pair up the opening curly brace { in the function search(), so sort() is being treated as part of search() instead of a separate ...


1

I incorporated this addMarker function into my app and it showed the list of articles in the info window (though the articles don't have "links"). So I "tweaked" articles; changed return jsonify(lookup(request.args.get("geo"))) to return jsonify([lookup(request.args.get("geo"))]). In other words, added another level of "list" with []. It gave the same result ...


1

You are using the wrong return value. From the pset specs: If query is instead passed a DELETE, INSERT, or UPDATE statement, it will return a non-negative integer that represents the number of rows deleted, inserted, or updated, respectively.


1

it appears that you're not extracting the query string correctly. I could tell from the command string which shows QUERY_STRING=\"Gou\" where it should be QUERY_STRING=\"name=Gou\"


Only top voted, non community-wiki answers of a minimum length are eligible