Skip to content

Commit

Permalink
Bugfix op de nog niet gebruikte fulltextsearch.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinkie committed Dec 18, 2011
1 parent e542bbf commit 27d8640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions getfeature/getfeature.py
Expand Up @@ -44,6 +44,8 @@ def getfeature(environ, start_response):
db = MySQLdb.connect(host="127.0.0.1", port=9306)
c = db.cursor()
c.execute("""SELECT tpc, naam, lat_radians, lon_radians, type FROM openov, openov_metaphone WHERE match(%s);""", (query))
rows = c.fetchall()
c.close()
results = []
for row in rows:
results.append({'tpc': row[0], 'naam': row[1], 'lat': math.degrees(row[2]), 'lon': math.degrees(row[3]), 'type': row[4]})
Expand Down

0 comments on commit 27d8640

Please sign in to comment.