From fd3ffa6857e0284a66dd03f4304af4215299b8db Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sat, 12 Feb 2022 09:38:47 -0600 Subject: [PATCH] Fix coords clause Signed-off-by: jolheiser --- gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = ""