Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions controller/FixesController.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ func FixPlayerPreferences(w http.ResponseWriter, r *http.Request) {
func FixRecruitProfileMods(w http.ResponseWriter, r *http.Request) {
managers.FixExistingModifiersForRecruits()
}

func FixNFLStadiums(w http.ResponseWriter, r *http.Request) {
managers.EnsureNFLStadiumsExist()
}
3 changes: 2 additions & 1 deletion controller/SchedulerController.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
)

func TestCFBScheduler(w http.ResponseWriter, r *http.Request) {
managers.BaseGenerateCFBSchedule(true)
managers.BaseGenerateCFBSchedule(false)
managers.GenerateSimNFLSchedule(false)
json.NewEncoder(w).Encode(true)
}

Expand Down
2 changes: 2 additions & 0 deletions data/WeatherSetup/Weather Data - FBS Assigns.csv
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,5 @@ WMU,MI Lower
WVU,PA West
WYOM,WY
ZONA,AZ
NDSU,ND
SSU,CA Central
9 changes: 6 additions & 3 deletions data/WeatherSetup/Weather Data - FCS Assigns.csv
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ MSVU,MS
MTST,MT
MUR,TN West
NAU,AZ
NDSU,ND
PENN,PA Southeast
PRIN,NJ
PRST,OR
Expand All @@ -43,7 +42,6 @@ SDAK,SD
SDST,SD
SIU,MO East
SOU,LA South
SSU,CA Central
TXSO,TX Coast
UAPB,AR
UCD,CA Central
Expand Down Expand Up @@ -126,4 +124,9 @@ UTU,UT
HAMP,VA East
RICH,VA East
W&M,VA East
NORF,VA East
NORF,VA East
UOG,HI
SAMO,HI
CHST,IL
UNH,CT
NH,CT
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func handleRequests() http.Handler {
// apiRouter.HandleFunc("/admin/fix/affinities", controller.RecalibrateCrootProfiles).Methods("GET")
// apiRouter.HandleFunc("/admin/fix/recruit/points", controller.RecalibrateRecruitPoints).Methods("GET")
// apiRouter.HandleFunc("/fix/profile/mods", controller.FixRecruitProfileMods).Methods("GET")
// apiRouter.HandleFunc("/fix/nfl/stadiums", controller.FixNFLStadiums).Methods("GET")

// Free Agency Controls
// apiRouter.HandleFunc("/nfl/extensions/sync", controller.SyncExtensions).Methods("GET")
Expand Down
2 changes: 1 addition & 1 deletion managers/AdminManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func GenerateOffseasonData() {
BaseGenerateCFBSchedule(false)

// Generate NFL Regular Season Schedule
GenerateSimNFLSchedule()
GenerateSimNFLSchedule(false)

// Reset Media Post Count
ResetSimCFBMediaPostCount()
Expand Down
2 changes: 1 addition & 1 deletion managers/BootstrapManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func GetSchedulePageBootstrap(username, collegeID, seasonID string) BootstrapDat
cfbGameRequests = repository.FindCFBGameRequestRecords(repository.SchedulerQuery{SeasonID: seasonID})
}()
}
wg.Add(4)
wg.Add(3)
go func() {
defer wg.Done()
log.Println("Fetching Retired Players...")
Expand Down
4 changes: 2 additions & 2 deletions managers/CFBScheduleManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ func MakeCollegeGameRecord(homeTeam structs.CollegeTeam, awayTeam structs.Colleg

return structs.CollegeGame{
HomeTeamID: int(homeTeam.ID),
HomeTeam: homeTeam.TeamName,
HomeTeam: homeTeam.TeamAbbr,
AwayTeamID: int(awayTeam.ID),
AwayTeam: awayTeam.TeamName,
AwayTeam: awayTeam.TeamAbbr,
Week: int(weekPlayed),
SeasonID: int(seasonID),
WeekID: int(weekID),
Expand Down
Loading
Loading