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)
def flightcount(objectid): return json.dumps(FlightCount.getFlightCountByObjectId(objectid).json())