Fix coords

Signed-off-by: jolheiser <john.olheiser@gmail.com>
coords
jolheiser 2022-02-10 20:16:04 -06:00
parent e5160f3839
commit 10b5995856
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 4 additions and 4 deletions

8
gui.py
View File

@ -101,12 +101,12 @@ def gui_results(form):
coords = [] coords = []
radius = form.radius if form.radius else "0" radius = form.radius if form.radius else "0"
if form.x: 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: 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: if form.z:
coords.append(" AND z BETWEEN {0} - {1} AND {0} + {1}".format(form.z, radius)) coords.append(" z BETWEEN {0} - {1} AND {0} + {1}".format(form.z, radius))
coords_clause = " AND ".join(coords) coords_clause = " AND ({})".format(" AND ".join(coords))
players = [] players = []
players_clause = "" players_clause = ""