add haschange api endpoint

This commit is contained in:
2019-06-23 21:42:49 +02:00
parent 2820b75cdd
commit bc36a16bf5
2 changed files with 14 additions and 0 deletions

View File

@@ -37,3 +37,9 @@ def findPlayer():
string = flask.request.args.get("string")
players = SB.findPlayer(string)
return "|".join([pt[0].serialize() + "," + str(pt[1]) for pt in players])
@app.route('/haschanged')
def hasChanged():
string = flask.request.args.get("time")
# TODO get time with timezone
return SB.hasChanged(localizedTime)