-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathvariables.py
128 lines (117 loc) · 3.33 KB
/
variables.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
from leeger.enum import MatchupType
from leeger.model.league import League, Matchup, Owner, Team, Week, Year, YearSettings
from leeger.model.league.Division import Division
ownerFrankie = Owner(name="Frankie")
ownerMonika = Owner(name="Monika")
ownerJoseph = Owner(name="Joseph")
ownerVincent = Owner(name="Vincent")
ownerGiovanna = Owner(name="Giovanna")
ownerDominic = Owner(name="Dominic")
teamFrankie2019 = Team(ownerId=ownerFrankie.id, name="Basil Bombers")
teamMonika2019 = Team(ownerId=ownerMonika.id, name="Philosopher's Thrown")
teamJoseph2019 = Team(ownerId=ownerJoseph.id, name="Leeger Legends")
teamVincent2019 = Team(ownerId=ownerVincent.id, name="Team 300")
teamGiovanna2019 = Team(ownerId=ownerGiovanna.id, name="High Notes")
teamDominic2019 = Team(ownerId=ownerDominic.id, name="Bike Ridas")
matchup1 = Matchup(
teamAId=teamFrankie2019.id,
teamBId=teamDominic2019.id,
teamAScore=101.2,
teamBScore=122,
)
matchup2 = Matchup(
teamAId=teamMonika2019.id,
teamBId=teamGiovanna2019.id,
teamAScore=78.4,
teamBScore=114.3,
)
matchup3 = Matchup(
teamAId=teamJoseph2019.id,
teamBId=teamVincent2019.id,
teamAScore=112,
teamBScore=145.3,
)
matchup4 = Matchup(
teamAId=teamFrankie2019.id,
teamBId=teamDominic2019.id,
teamAScore=98.6,
teamBScore=109.3,
matchupType=MatchupType.PLAYOFF,
multiWeekMatchupId="1",
)
matchup5 = Matchup(
teamAId=teamMonika2019.id,
teamBId=teamGiovanna2019.id,
teamAScore=118.4,
teamBScore=106.1,
matchupType=MatchupType.PLAYOFF,
multiWeekMatchupId="2",
)
matchup6 = Matchup(
teamAId=teamJoseph2019.id,
teamBId=teamVincent2019.id,
teamAScore=89.9,
teamBScore=100.5,
matchupType=MatchupType.IGNORE,
)
matchup7 = Matchup(
teamAId=teamFrankie2019.id,
teamBId=teamDominic2019.id,
teamAScore=101.7,
teamBScore=99.9,
matchupType=MatchupType.PLAYOFF,
multiWeekMatchupId="1",
)
matchup8 = Matchup(
teamAId=teamMonika2019.id,
teamBId=teamGiovanna2019.id,
teamAScore=104.1,
teamBScore=98.3,
matchupType=MatchupType.PLAYOFF,
multiWeekMatchupId="2",
)
matchup9 = Matchup(
teamAId=teamJoseph2019.id,
teamBId=teamVincent2019.id,
teamAScore=112.2,
teamBScore=105.5,
matchupType=MatchupType.IGNORE,
)
week1 = Week(weekNumber=1, matchups=[matchup1, matchup2, matchup3])
week2 = Week(weekNumber=2, matchups=[matchup4, matchup5, matchup6])
week3 = Week(weekNumber=3, matchups=[matchup7, matchup8, matchup9])
yearSettings = YearSettings(leagueMedianGames=True)
division1 = Division(name="Boyz")
division2 = Division(name="Girlz")
teamFrankie2019.divisionId = division1.id
teamMonika2019.divisionId = division2.id
teamJoseph2019.divisionId = division1.id
teamVincent2019.divisionId = division1.id
teamGiovanna2019.divisionId = division2.id
teamDominic2019.divisionId = division1.id
year2019 = Year(
yearNumber=2019,
teams=[
teamFrankie2019,
teamMonika2019,
teamJoseph2019,
teamVincent2019,
teamGiovanna2019,
teamDominic2019,
],
weeks=[week1, week2, week3],
yearSettings=yearSettings,
divisions=[division1, division2],
)
LEAGUE = League(
name="G League",
owners=[
ownerFrankie,
ownerMonika,
ownerJoseph,
ownerVincent,
ownerGiovanna,
ownerDominic,
],
years=[year2019],
)