def initializeGame(game_id, max_players, start_sentence, end_sentence, length): game_id = getNextGameID() newGame = Game(key_name=str(game_id)) newGame.game_id = game_id newGame.created = datetime.datetime.now() newGame.can_vote = False newGame.story = [] newGame.users = [] newGame.current_players = 0 newGame.num_phases = 1 #newGame.num_phases = 9 newGame.end_sentence = end_sentence newGame.start_sentence = start_sentence newGame.can_submit = False newGame.display_phase = False newGame.finished = False newGame.started = False newGame.users = [] newGame.game_length = length newGame.put() #storeCache(newGame, str(game_id)) return game_id