def new_game(): players = player_repository.select_all() games = game_repository.select_all() return render_template( "games/new.html", players=players, all_games=games, )
def games(): games = game_repository.select_all() return render_template("games/index.html", games=games)
def new_game(): games = game_repository.select_all() studios = studio_repository.select_all() workers = worker_repository.select_all() return render_template("games/new.html", games=games, studios=studios, workers=workers)
def new_task(): teams = team_repository.select_all() games = game_repository.select_all() return render_template("leagues/new.html", teams=teams, games=games)
game15 = Game(team1, team3, "game week 8", league1) game_repository.save(game15) game16 = Game(team2, team4, "game week 8", league1) game_repository.save(game16) game17 = Game(team1, team4, "game week 9", league1) game_repository.save(game17) game18 = Game(team3, team2, "game week 9", league1) game_repository.save(game18) game19 = Game(team2, team1, "game week 10", league1) game_repository.save(game19) game20 = Game(team4, team3, "game week 10", league1) game_repository.save(game20) game21 = Game(team3, team1, "game week 11", league1) game_repository.save(game21) game22 = Game(team4, team2, "game week 11", league1) game_repository.save(game22) game23 = Game(team4, team1, "game week 12", league1) game_repository.save(game23) game24 = Game(team2, team3, "game week 12", league1) game_repository.save(game24) # above will create games for each team to play each other 4 # times in the season, and enter the four teams into fixtures game_repository.select_all() # above will display the games