def close_game(game_id, db): player.clear_players(game_id, db) dice.clear_dice(game_id, db) status.clear_status(game_id, db)
def endgame(): dice.clear_dice(GAME_ID, get_db()) return redirect('/')