Compare commits

..

4 Commits

Author SHA1 Message Date
jolheiser 8887559cf4
Optimized imports
Signed-off-by: Etzelia <etzelia@hotmail.com>

# Conflicts:
#	gui.py
2022-02-10 20:17:38 -06:00
Etzelia dac77b4c08
Completed presets
Signed-off-by: Etzelia <etzelia@hotmail.com>
2022-02-10 20:16:59 -06:00
Etzelia 7dfc0dd1a8
Start work on presets
Signed-off-by: Etzelia <etzelia@hotmail.com>
2022-02-10 20:16:56 -06:00
jolheiser 10b5995856
Fix coords
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2022-02-10 20:16:04 -06:00
1 changed files with 1 additions and 5 deletions

4
gui.py
View File

@ -1,7 +1,5 @@
from datetime import datetime from datetime import datetime
from django.db import connection
from django_coreprotect.models import CoWorld, GUIResult from django_coreprotect.models import CoWorld, GUIResult
from django_coreprotect.utils import safe_int, checkbox, time_to_form from django_coreprotect.utils import safe_int, checkbox, time_to_form
@ -112,8 +110,6 @@ 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 = []