Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
修复定时任务项目mode参数bug
Browse files Browse the repository at this point in the history
  • Loading branch information
尹全旺 committed Jul 5, 2018
1 parent edd6c69 commit 28b53db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ApiManager/utils/common.py
Expand Up @@ -426,11 +426,12 @@ def task_logic(**kwargs):
return '任务名称重复,请重新命名'
desc = " ".join(str(i) for i in crontab_time)
name = kwargs.get('name')
mode = kwargs.pop('mode')

if 'module' in kwargs.keys():
kwargs.pop('project')

if kwargs.pop('mode') == '1':
if mode == '1':
return create_task(name, 'ApiManager.tasks.module_hrun', kwargs, crontab, desc)
else:
kwargs['suite'] = kwargs.pop('module')
Expand Down

0 comments on commit 28b53db

Please sign in to comment.