浏览代码

[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

正在加载...
取消
保存