dify/api/controllers
Harry 452588dded refactor(api): fix pyright check
- Replaced `is_editor` checks with `has_edit_permission` in `workflow_trigger.py` and `workflow.py` to enhance clarity and consistency in permission handling.
- Updated the rate limiter to use `datetime.now(UTC)` instead of `datetime.utcnow()` for accurate time handling.
- Added `__all__` declaration in `trigger/__init__.py` for better module export management.
- Initialized `debug_dispatched` variable in `trigger_processing_tasks.py` to ensure proper tracking during workflow dispatching.

These changes improve code readability and maintainability while ensuring correct permission checks and time management.
2025-09-25 18:32:22 +08:00
..
common feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
console refactor(api): fix pyright check 2025-09-25 18:32:22 +08:00
files feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
inner_api feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
mcp Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00
service_api delete end_user check (#26187) 2025-09-24 21:32:37 +08:00
trigger refactor(api): fix pyright check 2025-09-25 18:32:22 +08:00
web fix: Message => str (#25876) 2025-09-18 17:57:57 +08:00
__init__.py chore(api/controllers): Apply Ruff Formatter. (#7645) 2024-08-26 15:29:10 +08:00