MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / modify_crontab

Method modify_crontab

mod/project/php/php_asyncMod.py:1561–1570  ·  view source on GitHub ↗
(self, get)

Source from the content-addressed store, hash-verified

1559 return public.returnResult(False, traceback.format_exc())
1560
1561 def modify_crontab(self, get):
1562 try:
1563 if not hasattr(get, 'id'):
1564 return public.returnResult(False, 'ID不能为空')
1565 self.remove_crontab(get)
1566 res = self.add_crontab(get)
1567 res['msg'] = res['msg'].replace('添加', '修改')
1568 return res
1569 except:
1570 return public.returnResult(False, traceback.format_exc())
1571
1572 def get_crontab_log(self, get):
1573 try:

Callers

nothing calls this directly

Calls 4

remove_crontabMethod · 0.95
add_crontabMethod · 0.95
returnResultMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected