Private
Public Access
1
0

fix tests

This commit is contained in:
Sander Roosendaal
2022-02-17 20:22:42 +01:00
parent 337e0ff558
commit ac9b541a28
2 changed files with 6 additions and 6 deletions

View File

@@ -503,8 +503,9 @@ def getagegrouprecord(age, sex='male', weightcategory='hwt',
def polygon_to_path(polygon, debug=True):
pid = polygon[0]
query = "SELECT id, latitude, longitude FROM rowers_geopoint WHERE polygon_id = {pid}'\
' ORDER BY order_in_poly ASC".format(pid=pid)
query = "SELECT id, latitude, longitude FROM rowers_geopoint WHERE polygon_id = {pid}"\
" ORDER BY order_in_poly ASC".format(
pid=pid)
if debug:
engine = create_engine(database_url_debug, echo=False)
else: # pragma: no cover