diff --git a/logs/pickleball.log b/logs/pickleball.log
index 0b31269..499137c 100644
--- a/logs/pickleball.log
+++ b/logs/pickleball.log
@@ -1016,3 +1016,16 @@ Starting Pickleball ELO Tracker Server on port 3000...
➕ Add Player: http://localhost:3000/players/new
🎾 Record Match: http://localhost:3000/matches/new
+🏓 Pickleball ELO Tracker v3.0
+==============================
+
+Starting Pickleball ELO Tracker Server on port 3000...
+
+✅ Server running at http://localhost:3000
+📊 Leaderboard: http://localhost:3000/leaderboard
+📜 Match History: http://localhost:3000/matches
+👥 Players: http://localhost:3000/players
+⚖️ Team Balancer: http://localhost:3000/balance
+➕ Add Player: http://localhost:3000/players/new
+🎾 Record Match: http://localhost:3000/matches/new
+
diff --git a/pickleball-elo b/pickleball-elo
index f3319db..cc9194f 100755
Binary files a/pickleball-elo and b/pickleball-elo differ
diff --git a/src/main.rs b/src/main.rs
index 08adbb1..1425bf8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2273,21 +2273,15 @@ async fn daily_summary_handler(
.unwrap_or_default();
let mut players_html = String::new();
- for (name, email, singles_change, doubles_change) in &player_rating_changes {
- let format_change = |c: f64| {
- if c > 0.0 { format!("+{:.0}", c) }
- else if c < 0.0 { format!("{:.0}", c) }
- else { "—".to_string() }
- };
+ for (name, _email, singles_change, doubles_change) in &player_rating_changes {
let total = singles_change + doubles_change;
let total_str = if total > 0.0 { format!("+{:.0}", total) }
else if total < 0.0 { format!("{:.0}", total) }
else { "—".to_string() };
- let has_email = if !email.is_empty() { "✅" } else { "❌" };
players_html.push_str(&format!(
- "
| {} | {} | {} | {} | {} |
",
- name, has_email, format_change(*singles_change), format_change(*doubles_change), total_str
+ "| {} | {} |
",
+ name, total_str
));
}
@@ -2564,10 +2558,7 @@ async fn daily_summary_handler(
| Player |
- Email |
- Singles Δ |
- Doubles Δ |
- Total |
+ ELO Δ |
@@ -2738,19 +2729,14 @@ async fn send_daily_summary(
let mut players_email_html = String::new();
for (name, singles_change, doubles_change) in &player_rating_changes {
- let format_change = |c: f64| {
- if c > 0.0 { format!("+{:.0}", c) }
- else if c < 0.0 { format!("{:.0}", c) }
- else { "—".to_string() }
- };
let total = singles_change + doubles_change;
let total_str = if total > 0.0 { format!("+{:.0}", total) }
else if total < 0.0 { format!("{:.0}", total) }
else { "—".to_string() };
players_email_html.push_str(&format!(
- "| {} | {} | {} | {} |
",
- name, format_change(*singles_change), format_change(*doubles_change), total_str
+ "| {} | {} |
",
+ name, total_str
));
}
@@ -2982,9 +2968,7 @@ async fn send_daily_summary(
| Player |
- Singles Δ |
- Doubles Δ |
- Total |
+ ELO Δ |
{}
@@ -3136,19 +3120,14 @@ async fn daily_public_handler(
let mut players_html = String::new();
for (name, singles_change, doubles_change) in &player_rating_changes {
- let format_change = |c: f64| {
- if c > 0.0 { format!("+{:.0}", c) }
- else if c < 0.0 { format!("{:.0}", c) }
- else { "—".to_string() }
- };
let total = singles_change + doubles_change;
let total_str = if total > 0.0 { format!("+{:.0}", total) }
else if total < 0.0 { format!("{:.0}", total) }
else { "—".to_string() };
players_html.push_str(&format!(
- "| {} | {} | {} | {} |
",
- name, format_change(*singles_change), format_change(*doubles_change), total_str
+ "| {} | {} |
",
+ name, total_str
));
}
@@ -3436,7 +3415,7 @@ async fn daily_public_handler(
📈 Player Performance
- | Player | Singles Δ | Doubles Δ | Total |
+ | Player | ELO Δ |
{}