From 10b5995856537653ca36cf1b7d9f39f4682eba3e Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 10 Feb 2022 20:16:04 -0600 Subject: [PATCH] Fix coords Signed-off-by: jolheiser --- gui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui.py b/gui.py index 1ed19d6..a49f8a2 100644 --- a/gui.py +++ b/gui.py @@ -101,12 +101,12 @@ def gui_results(form): coords = [] radius = form.radius if form.radius else "0" if form.x: - coords.append(" AND x BETWEEN {0} - {1} AND {0} + {1}".format(form.x, radius)) + coords.append(" x BETWEEN {0} - {1} AND {0} + {1}".format(form.x, radius)) if form.y: - coords.append(" AND y BETWEEN {0} - {1} AND {0} + {1}".format(form.y, radius)) + coords.append(" y BETWEEN {0} - {1} AND {0} + {1}".format(form.y, radius)) if form.z: - coords.append(" AND z BETWEEN {0} - {1} AND {0} + {1}".format(form.z, radius)) - coords_clause = " AND ".join(coords) + coords.append(" z BETWEEN {0} - {1} AND {0} + {1}".format(form.z, radius)) + coords_clause = " AND ({})".format(" AND ".join(coords)) players = [] players_clause = ""