Skip to content

[DATABASE] Fix import path for alerts.py in app.py #38

Open
ezehf2 opened this issue Apr 5, 2026 · 0 comments
Open

[DATABASE] Fix import path for alerts.py in app.py #38

ezehf2 opened this issue Apr 5, 2026 · 0 comments
Assignees

Comments

@ezehf2
Copy link
Owner

ezehf2 commented Apr 5, 2026

Currently, app.py imports from alerts using a relative import that only works when the file is run from inside src/dashboard/. This will break when the project is run from the root directory. Fix the import so it works regardless of where the app is launched from. The simplest fix is to add the dashboard folder to the Python path at the top of app.py or restructure the import using a package-style import. Test by running python src/dashboard/app.py from the project root and confirming no import errors. Commit with message [DASHBOARD] Fix alerts import path.

@ezehf2 ezehf2 self-assigned this Apr 5, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant