From 5ed70efd54757de22994663ffc9c44f263b161a6 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Sat, 27 Aug 2011 19:19:57 -0700 Subject: [PATCH] Fix possible bug in .similar_features() (wkt) --- gazetteer/places/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazetteer/places/models.py b/gazetteer/places/models.py index f29f6e4..0164eb6 100644 --- a/gazetteer/places/models.py +++ b/gazetteer/places/models.py @@ -82,7 +82,7 @@ class Feature(models.Model): ) AS whatever WHERE %f * similarity / distance >= 1.0 ORDER BY similarity / distance DESC""" - % (scale_factor, name, self.geometry, self.geometry, + % (scale_factor, name, self.geometry.wkt, self.geometry.wkt, max_distance*0.00001, name, scale_factor) ) result_list = []