diff --git a/gui.py b/gui.py index 85eaf80..e81d85a 100644 --- a/gui.py +++ b/gui.py @@ -112,7 +112,9 @@ def gui_results(form): coords.append(" y BETWEEN {0} - {1} AND {0} + {1}".format(form.y, radius)) if form.z: coords.append(" z BETWEEN {0} - {1} AND {0} + {1}".format(form.z, radius)) - coords_clause = " AND ({})".format(" AND ".join(coords)) + coords_clause = "" + if coords: + coords_clause = " AND ({})".format(" AND ".join(coords)) players = [] players_clause = ""