Commit 3a833cfc authored by Sean Stangl's avatar Sean Stangl

Update PA and WP to use Wilks2020

parent b6da02ae
Pipeline #161623857 passed with stages
in 30 minutes and 44 seconds
......@@ -919,7 +919,6 @@ pub enum Federation {
#[strum(to_string = "UnifiedSA", serialize = "unifiedsa")]
UnifiedSA,
/// United Powerlifting Association.
#[strum(to_string = "UPA", serialize = "upa")]
UPA,
......@@ -2478,7 +2477,9 @@ impl Federation {
Federation::ORPF => Federation::ipf_rules_on(date),
Federation::OEVK => Federation::ipf_rules_on(date),
Federation::PA => {
if date.year() >= 1997 {
if date.year() >= 2020 {
PointsSystem::Wilks2020
} else if date.year() >= 1997 {
PointsSystem::Wilks
} else {
PointsSystem::SchwartzMalone
......@@ -2568,7 +2569,13 @@ impl Federation {
Federation::WBC => PointsSystem::Wilks,
Federation::WDFPF => PointsSystem::Wilks,
Federation::WelshPA => Federation::ipf_rules_on(date),
Federation::WP => PointsSystem::Wilks,
Federation::WP => {
if date.year() >= 2020 {
PointsSystem::Wilks2020
} else {
PointsSystem::Wilks
}
}
Federation::WPA => PointsSystem::Wilks,
Federation::WPAGEO => PointsSystem::Wilks,
Federation::WPARUS => PointsSystem::Wilks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment