Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed Apr 24, 2024
1 parent 21dff2e commit a772035
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
36 changes: 18 additions & 18 deletions managers/GameplanManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,12 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
if pos == "QB" || pos == "RB" || pos == "FB" || pos == "ATH" {
score := 0
if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
score -= 35
}
if pos == "QB" {
score += 100
score += 75
} else if pos == "ATH" && (arch == "Triple-Threat" || arch == "Field General") {
score += 50
}
Expand All @@ -616,9 +616,9 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
score += 50
}
if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
score -= 40
}

score += ((cp.Speed + cp.Agility + cp.Strength + cp.Carrying) / 4)
Expand All @@ -642,7 +642,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand All @@ -667,7 +667,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand All @@ -692,7 +692,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -724,7 +724,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -760,9 +760,9 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 30
score += 25
} else if isBadFit && !isGoodFit {
score -= 30
score -= 50
}

score += int(float64(cp.Overall)*0.7) +
Expand Down Expand Up @@ -795,7 +795,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -828,7 +828,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -868,7 +868,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -905,7 +905,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -949,7 +949,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -986,7 +986,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down Expand Up @@ -1022,7 +1022,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame
}

if isGoodFit && !isBadFit {
score += 50
score += 25
} else if isBadFit && !isGoodFit {
score -= 50
}
Expand Down
4 changes: 4 additions & 0 deletions managers/SyncManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func SyncRecruiting(timestamp structs.Timestamp) {
fmt.Println(time.Now().UnixNano())
//GetCurrentWeek

if !timestamp.IsRecruitingLocked {
timestamp.ToggleLockRecruiting()
}

if timestamp.RecruitingSynced {
log.Fatalln("Recruiting already ran for this week. Please wait until next week to sync recruiting again.")
}
Expand Down

0 comments on commit a772035

Please sign in to comment.