Commit Graph

2 Commits

Author SHA1 Message Date
Dries Peeters
583f9b6755 Format code with Black to fix code quality test 2025-11-29 07:13:23 +01:00
Dries Peeters
653800d22b Fix blueprint registration errors and client portal UnboundLocalError
- Create app/utils/decorators.py with admin_required decorator to fix missing module error
- Fix incorrect babel imports in 6 route files: change from 'babel' to 'flask_babel' for gettext
  - app/routes/workflows.py
  - app/routes/time_approvals.py
  - app/routes/activity_feed.py
  - app/routes/recurring_tasks.py
  - app/routes/team_chat.py
  - app/routes/client_portal_customization.py
- Fix UnboundLocalError in app/routes/client_portal.py by removing redundant local import of Client
- Fix undefined service variable in app/routes/time_approvals.py view_approval function

These fixes resolve the blueprint registration warnings and the client portal login error.
2025-11-28 22:37:48 +01:00