Skip to content

Commit 97cb729

Browse files
committed
2020 update
1 parent ad5bc43 commit 97cb729

3 files changed

Lines changed: 38 additions & 140 deletions

File tree

chris.go

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,104 +4,104 @@ func getFantasyChris() *pctLeague {
44
return &pctLeague{
55
Teams: []*fantasyTeam{
66
{
7-
Name: "Bobby Bonilla’s $1.2 million",
7+
Name: "Bobby Bonilla’s $1.2 million wtf",
88
Owner: "Sean",
9-
teams: []string{NYY, WA, SL, LAA, CIN, DE},
9+
teams: []string{HO, ATL, BO, CIN, SF, SE},
1010
},
1111
{
1212
Name: "50 Shades of Sonny Gray",
1313
Owner: "Harrison",
14-
teams: []string{HO, WA, MIL, OAK, CIN, DE},
14+
teams: []string{LAD, OAK, PHIL, CHIW, SD, DE},
1515
},
1616
{
17-
Name: "Scrimblet ball",
17+
Name: "Backyard_Baseball_2003.exe",
1818
Owner: "Jake",
19-
teams: []string{NYY, WA, NYM, OAK, CHIW, MI},
19+
teams: []string{WA, MIN, MIL, AZ, TX, KC},
2020
},
2121
{
2222
Name: "Beffballs",
2323
Owner: "Beth",
24-
teams: []string{HO, NYM, MIL, MIN, CIN, TX},
24+
teams: []string{MIN, TB, BO, CHIW, CO, MI},
2525
},
2626
{
27-
Name: "DeGromNomNom",
27+
Name: "Rum Tum Slugger",
2828
Owner: "Kate",
29-
teams: []string{NYY, PHIL, NYM, LAA, SD, MI},
30-
},
31-
{
32-
Name: "Game of Failure",
33-
Owner: "Matt",
34-
teams: []string{BO, WA, SL, OAK, CIN, SE},
29+
teams: []string{CHIC, ATL, CL, CIN, PITT, SF},
3530
},
3631
{
3732
Name: "Never Order Helmet Nachos",
3833
Owner: "Chuck",
39-
teams: []string{HO, PHIL, MIL, CO, SD, SE},
34+
teams: []string{HO, TB, CL, CIN, TO, MI},
4035
},
4136
{
4237
Name: "Luv2bsbl72",
4338
Owner: "Lindsay",
44-
teams: []string{BA, SL, TO, MIN, SF, DE},
39+
teams: []string{WA, TB, MIL, TX, TO, SE},
4540
},
4641
{
4742
Name: "a dream Chicken Finger Bucket",
4843
Owner: "Marie",
49-
teams: []string{NYY, CL, MIL, CO, CHIW, TX},
44+
teams: []string{WA, SL, CL, LAA, PITT, KC},
5045
},
5146
{
5247
Name: "Relief Pitchers",
5348
Owner: "Chris",
54-
teams: []string{HO, CL, ATL, TB, SD, AZ},
55-
},
56-
{
57-
Name: "Don't know nothin about baseball",
58-
Owner: "Keri",
59-
teams: []string{LAD, BA, SF, KC, TO, TX},
49+
teams: []string{LAD, SL, CHIC, CHIW, PITT, BA},
6050
},
6151
{
62-
Name: "Jobu needs a refill",
52+
Name: "I like Inge",
6353
Owner: "Pat",
64-
teams: []string{CL, SL, TB, NYM, PITT, AZ},
54+
teams: []string{LAD, SL, PHIL, SD, CO, BA},
6555
},
6656
{
6757
Name: "No glove no love 2",
6858
Owner: "Katie",
69-
teams: []string{CHIC, SD, MIN, KC, BA, MI},
59+
teams: []string{NYY, TB, OAK, CHIW, TX, MI},
7060
},
7161
{
7262
Name: "Ultraviolet",
7363
Owner: "Ryan",
74-
teams: []string{BO, PHIL, ATL, LAA, PITT, AZ},
64+
teams: []string{ATL, MIN, CHIC, CIN, KC, BA},
7565
},
7666
{
77-
Name: "Pedro Serrano",
67+
Name: "All Rise",
7868
Owner: "Andrew",
79-
teams: []string{CL, CHIC, CO, ATL, CHIW, MI},
80-
},
81-
{
82-
Name: "Murfreesboro Tongue Sandwiches",
83-
Owner: "Tyler",
84-
teams: []string{BO, TO, CHIW, BA, SE, KC},
69+
teams: []string{NYY, NYM, CL, LAA, SD, DE},
8570
},
8671
{
8772
Name: "I’m in a nightmare, empty chicken finger bucket",
8873
Owner: "Wolan",
89-
teams: []string{BO, CHIC, ATL, OAK, SF, PITT},
74+
teams: []string{HO, MIN, MIL, AZ, TO, SE},
9075
},
9176
{
9277
Name: "Zookey Burger",
9378
Owner: "Carol",
94-
teams: []string{LAD, PHIL, TB, CO, SF, SE},
79+
teams: []string{NYY, OAK, NYM, PITT, CO, DE},
9580
},
9681
{
9782
Name: "wildxbaseball10",
9883
Owner: "Lauren",
99-
teams: []string{CHIC, LAD, MIN, TB, PITT, AZ},
84+
teams: []string{WA, PHIL, MIL, AZ, TO, SE},
10085
},
10186
{
102-
Name: "HOME dRUNK",
87+
Name: "Bernie Sandlot",
10388
Owner: "Casey",
104-
teams: []string{LAA, LAD, KC, TO, DE, TX},
89+
teams: []string{PHIL, CHIC, BO, CO, KC, DE},
90+
},
91+
{
92+
Name: "... Tim?",
93+
Owner: "Tim",
94+
teams: []string{HO, ATL, BO, AZ, SF, SE},
95+
},
96+
{
97+
Name: "Syndergaardians of the Galaxy",
98+
Owner: "Tom",
99+
teams: []string{LAD, SL, NYM, LAA, TO, MI},
100+
},
101+
{
102+
Name: "Baby Clavin",
103+
Owner: "Dan",
104+
teams: []string{NYY, OAK, NYM, LAA, SD, DE},
105105
},
106106
},
107107
}

main.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func main() {
2525
fs := http.FileServer(http.Dir("./baseball_frontend/build/"))
2626
http.Handle("/", fs)
2727
http.HandleFunc("/CHRIS", s.chrisHandler)
28-
http.HandleFunc("/CORK", s.ryanHandler)
2928
fmt.Println(http.ListenAndServe(":8081", nil))
3029
}
3130

@@ -74,21 +73,3 @@ func (s *server) chrisHandler(w http.ResponseWriter, r *http.Request) {
7473
fmt.Println(err)
7574
}
7675
}
77-
78-
func (s *server) ryanHandler(w http.ResponseWriter, r *http.Request) {
79-
setHeaders(w)
80-
leagueStandings := getFantasyRyan()
81-
mlb := s.mlbClient.getMLBStandings()
82-
83-
populateScores(leagueStandings, mlb)
84-
leagueStandings.Rank()
85-
86-
respBody := responseBody{
87-
Status: http.StatusOK,
88-
Teams: leagueStandings.Teams,
89-
}
90-
encoder := json.NewEncoder(w)
91-
if err := encoder.Encode(respBody); err != nil {
92-
fmt.Println(err)
93-
}
94-
}

ryan.go

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)