fix findPlayer

This commit is contained in:
2019-06-09 15:47:11 +02:00
parent fa01a5cab9
commit f6c400463c
2 changed files with 22 additions and 3 deletions

View File

@@ -35,5 +35,5 @@ def getRankRange():
@app.route('/findplayer')
def findPlayer():
string = flask.request.args.get("string")
players = SB.fuzzy_find_player(string)
return "|".join([p.serialize() for p in players])
players = SB.findPlayer(string)
return "|".join([pt[0].serialize() + "," + str(pt[1]) for pt in players])