parent
e5160f3839
commit
10b5995856
8
gui.py
8
gui.py
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in New Issue