Skip to content

fix: change default port to 57832 and fix hourly filter ReferenceError#102

Open
ahmedpemaj wants to merge 1 commit into
phuryn:mainfrom
ahmedpemaj:main
Open

fix: change default port to 57832 and fix hourly filter ReferenceError#102
ahmedpemaj wants to merge 1 commit into
phuryn:mainfrom
ahmedpemaj:main

Conversation

@ahmedpemaj
Copy link
Copy Markdown

What changed

  • Default port changed from 8080 to 57832 in cli.py and dashboard.py. Less commonly occupied, overridable via PORT env var.
  • Fixed ReferenceError: cutoff is not defined in applyFilter() (dashboard.py). The variable cutoff was a stale artifact from an earlier refactor — rest of function already used start/end from getRangeBounds(). Replaced with (!start || r.day >= start) && (!end || r.day <= end).

Why

The cutoff bug caused a JS error on every filter call, silently breaking all dashboard data rendering — charts and tables showed empty despite data existing in DB.

Testing

Ran python cli.py dashboard — dashboard loads and renders data correctly across all date range selections.

…off bug

- Change default dashboard port from 8080 to 57832 (less commonly used)
- Fix ReferenceError: cutoff is not defined in applyFilter() — replace undefined
  `cutoff` variable with `start`/`end` bounds from getRangeBounds(), enabling
  hourly chart data to render correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant