mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 14:51:36 +01:00
add haschange api endpoint
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user