Fix coords clause

Signed-off-by: jolheiser <john.olheiser@gmail.com>
master
jolheiser 2022-02-12 09:38:47 -06:00
parent e1b3319247
commit fd3ffa6857
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 3 additions and 1 deletions

2
gui.py
View File

@ -112,6 +112,8 @@ def gui_results(form):
coords.append(" 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(" 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 = ""
if coords:
coords_clause = " AND ({})".format(" AND ".join(coords)) coords_clause = " AND ({})".format(" AND ".join(coords))
players = [] players = []