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
2 changes: 1 addition & 1 deletion dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>Chomp Dashboard</h1>
// Configurable targets via URL params
const params = new URLSearchParams(window.location.search);
const TARGET_PROTEIN = +(params.get('protein') || 100);
const TARGET_CALORIES = +(params.get('calories') || 2000);
const TARGET_CALORIES = +(params.get('calories') || 1300);
const CALORIE_MODE = params.get('calorieMode') || 'under'; // 'under' or 'over'

// Track chart instances for cleanup on reload
Expand Down
2 changes: 1 addition & 1 deletion src/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async fn today_handler() -> impl IntoResponse {
};

let totals = db.get_today_totals().unwrap_or_default();
let entries = db.get_history(1).unwrap_or_default();
let entries = db.get_history(0).unwrap_or_default();

Json(serde_json::json!({
"totals": totals,
Expand Down
Loading