Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
jolheiser | 8887559cf4 | |
Etzelia | dac77b4c08 | |
Etzelia | 7dfc0dd1a8 | |
jolheiser | 10b5995856 |
6
gui.py
6
gui.py
|
@ -1,7 +1,5 @@
|
|||
from datetime import datetime
|
||||
|
||||
from django.db import connection
|
||||
|
||||
from django_coreprotect.models import CoWorld, GUIResult
|
||||
from django_coreprotect.utils import safe_int, checkbox, time_to_form
|
||||
|
||||
|
@ -112,9 +110,7 @@ def gui_results(form):
|
|||
coords.append(" y BETWEEN {0} - {1} AND {0} + {1}".format(form.y, radius))
|
||||
if form.z:
|
||||
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_clause = ""
|
||||
|
|
Loading…
Reference in New Issue