parent
6b8617fe02
commit
a1731ce47f
|
@ -30,7 +30,7 @@ def activity_results(form):
|
|||
if form.players:
|
||||
for player in form.players.split(","):
|
||||
players.append(player.strip())
|
||||
players_clause = " WHERE ({}) ".format(" OR ".join(["player LIKE '%{}%'".format(p) for p in players]))
|
||||
players_clause = " WHERE ({}) ".format(" OR ".join(["player LIKE '%%{}%%'".format(p) for p in players]))
|
||||
query = '''SELECT
|
||||
0 AS id, cs.time AS unix, cu.user AS player, cs.action
|
||||
FROM co_session cs
|
||||
|
|
4
gui.py
4
gui.py
|
@ -94,7 +94,7 @@ def gui_data(request):
|
|||
|
||||
def gui_results(form):
|
||||
queries = []
|
||||
ignore_environment = " AND player NOT LIKE '#%' " if form.ignore_environment else ""
|
||||
ignore_environment = " AND player NOT LIKE '#%%' " if form.ignore_environment else ""
|
||||
oldest_first = " ASC " if form.oldest_first else " DESC "
|
||||
|
||||
coords = []
|
||||
|
@ -112,7 +112,7 @@ def gui_results(form):
|
|||
if form.players:
|
||||
for player in form.players.split(","):
|
||||
players.append(player.strip())
|
||||
players_clause = " AND ({})".format(" OR ".join(["player LIKE '%{}%'".format(p) for p in players]))
|
||||
players_clause = " AND ({})".format(" OR ".join(["player LIKE '%%{}%%'".format(p) for p in players]))
|
||||
|
||||
worlds_clause = ""
|
||||
worlds = [world["id"] for world in form.worlds if world["checked"]]
|
||||
|
|
Loading…
Reference in New Issue