(self, get)
| 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: |
nothing calls this directly
no test coverage detected