import pdb

from models.gamedetail import Gamedetail
from models.game import Game
from models.team import Team

from repositories import gamedetail_repository, game_repository, team_repository

gamedetail_repository.delete_all()
game_repository.delete_all()
team_repository.delete_all()


team_1 = Team("Glasgow Clan", "Breahead Arena", "Glasgow", "http://www.clanihc.com", "gla_logo.png")
team_repository.save(team_1)
team_2 = Team("Fife Flyers", "Fife Ice Arena", "Kirkcaldy", "http://www.fifeflyers.co.uk", "fif_logo.png")
team_repository.save(team_2)
team_3 = Team("Dundee Stars", "Dundee Ice Arena", "Dundee", "http://www.dundeestars.com", "dun_logo.png")
team_repository.save(team_3)
team_4 = Team("Sheffield Steelers", "Sheffield Arena", "Sheffield", "http://www.sheffieldsteelers.co.uk", "she_logo.png")
team_repository.save(team_4)
team_5 = Team("Coventry Blaze", "Skydome Arena", "Coventry", "http://www.coventryblaze.co.uk", "cov_logo.png")
team_repository.save(team_5)
team_6 = Team("Nottingham Panthers", "Motorpoint Arena", "Nottingham", "http://www.panthers.co.uk", "not_logo.png")
team_repository.save(team_6)
team_7 = Team("Cardiff Devils", "Ice Arena Wales", "Cardiff", "http://www.cardiffdevils.com", "car_logo.png")
team_repository.save(team_7)
team_8 = Team("Manchester Storm", "Planet Ice Altrincham", "Manchester", "http://www.manchesterstorm.com", "mcr_logo.png")
team_repository.save(team_8)
team_9 = Team("Belfast Giants", "The SSE Arena", "Belfast", "http://www.belfastgiants.com", "bel_logo.png")
team_repository.save(team_9)
team_10 = Team("Guildford Flames", "Spectrum Leisure Complex", "Guildford", "http://www.guildfordflames.co.uk", "gui_logo.png")
team_repository.save(team_10)


game_1 = Game("20220918","1800", "Guildford", "2022")
game_repository.save(game_1)
game_2 = Game("20220922","1930", "Glasgow", "2022")
game_repository.save(game_2)
game_3 = Game("20220924","1900", "Cardiff", "2022")
game_repository.save(game_3)
game_4 = Game("20221008","1900", "Glasgow", "2022")
game_repository.save(game_4)
game_5 = Game("20220924","1915", "Kirkcaldy", "2022")
game_repository.save(game_5)
game_6 = Game("20220625","1730", "coventry", "2022")
game_repository.save(game_6)
game_7 = Game("20221010","1915", "Guildford", "2022")
game_repository.save(game_7)
game_8 = Game("20221002","1900", "Kirkcaldy", "2022")
game_repository.save(game_8)
game_9 = Game("20220918","1700", "Dundee", "2022")
game_repository.save(game_9)
game_10 = Game("20223009","1930", "Nottingham", "2022")
game_repository.save(game_10)
game_11 = Game("20221001","1900", "Manchester", "2022")
game_repository.save(game_11)
game_12 = Game("20221009","1700", "Dundee", "2022")
game_repository.save(game_12)
game_13 = Game("20220910","1900", "Sheffield", "2022")
game_repository.save(game_13)
game_14 = Game("20220911","1800", "Guildford", "2022")
game_repository.save(game_14)
game_15 = Game("20220210","1730", "Coventry", "2022")
game_repository.save(game_15)
game_16 = Game("20221006","1930", "Sheffield", "2022")
game_repository.save(game_16)
game_17 = Game("20220910","1900", "Manchester", "2022")
game_repository.save(game_17)
game_18 = Game("20220911","1730", "Coventry", "2022")
game_repository.save(game_18)
game_19 = Game("20220917","1930", "Nottingham", "2022")
game_repository.save(game_19)
game_20 = Game("20220925","1730", "Coventry", "2022")
game_repository.save(game_20)


gamedetail_1 = Gamedetail(game_1,team_1,"Home","Win",7,2,"")
gamedetail_repository.save(gamedetail_1)
gamedetail_2 = Gamedetail(game_1,team_2,"Away","loss",3,8,"")
gamedetail_repository.save(gamedetail_2)
gamedetail_3 = Gamedetail(game_2,team_3,"Home","Win",5,2,"")
gamedetail_repository.save(gamedetail_3)
gamedetail_4 = Gamedetail(game_2,team_4,"Away","loss",0,10,"")
gamedetail_repository.save(gamedetail_4)
gamedetail_5 = Gamedetail(game_3,team_5,"Home","Win",7,2,"")
gamedetail_repository.save(gamedetail_5)
gamedetail_6 = Gamedetail(game_3,team_6,"Away","loss",3,8,"")
gamedetail_repository.save(gamedetail_6)
gamedetail_7 = Gamedetail(game_4,team_7,"Home","Win",5,2,"")
gamedetail_repository.save(gamedetail_7)
gamedetail_8 = Gamedetail(game_4,team_8,"Away","loss",0,10,"")
gamedetail_repository.save(gamedetail_8)
gamedetail_9 = Gamedetail(game_5,team_9,"Home","Win",7,2,"")
gamedetail_repository.save(gamedetail_9)
gamedetail_10 = Gamedetail(game_5,team_10,"Away","loss",3,8,"")
gamedetail_repository.save(gamedetail_10)
gamedetail_11 = Gamedetail(game_6,team_10,"Home","Win",5,2,"")
gamedetail_repository.save(gamedetail_11)
gamedetail_12 = Gamedetail(game_6,team_1,"Away","loss",0,10,"")
gamedetail_repository.save(gamedetail_12)
gamedetail_13 = Gamedetail(game_7,team_2,"Home","Win",7,2,"")
gamedetail_repository.save(gamedetail_13)
gamedetail_14 = Gamedetail(game_7,team_9,"Away","loss",3,8,"")
gamedetail_repository.save(gamedetail_14)
gamedetail_15 = Gamedetail(game_8,team_4,"Home","Win",5,2,"")
gamedetail_repository.save(gamedetail_15)
gamedetail_16 = Gamedetail(game_8,team_3,"Away","loss",0,10,"")
gamedetail_repository.save(gamedetail_16)
gamedetail_17 = Gamedetail(game_9,team_8,"Home","Win",7,2,"")
gamedetail_repository.save(gamedetail_17)
gamedetail_18 = Gamedetail(game_9,team_7,"Away","loss",3,8,"")
gamedetail_repository.save(gamedetail_18)
gamedetail_19 = Gamedetail(game_10,team_6,"Home","Win",5,2,"")
gamedetail_repository.save(gamedetail_19)
gamedetail_20 = Gamedetail(game_10,team_5,"Away","loss",0,10,"")
gamedetail_repository.save(gamedetail_20)



