예제 #1
0
def highscore():
    highScoreFlightCount = FlightCount.getHighScore()
    print(highScoreFlightCount)
    data = {}
    for x in range(0, len(highScoreFlightCount)):
        data[str(x)] = highScoreFlightCount[x].json()
    return json.dumps(data)
예제 #2
0
def flightcount(objectid):
    return json.dumps(FlightCount.getFlightCountByObjectId(objectid).json())