瀏覽代碼

[fix] integration scheduler events

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
01e1a87c5a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      frappe/integration_broker/doctype/integration_service/integration_service.py

+ 2
- 2
frappe/integration_broker/doctype/integration_service/integration_service.py 查看文件

@@ -104,8 +104,8 @@ def get_integration_service_events():
fields=["name"]):
controller = get_integration_controller(service.name)

if hasattr(controller, "scheduler_events").items():
for key, handlers in controller.scheduler_events:
if hasattr(controller, "scheduler_events"):
for key, handlers in controller.scheduler_events.items():
events.setdefault(key, []).extend(handlers)

return events

Loading…
取消
儲存