fix: xscript update bug
This commit is contained in:
parent
2be34d3caa
commit
417dae76fd
|
@ -237,8 +237,10 @@ class XscriptSerializer(CustomModelSerializer):
|
|||
sch = ins.myschedule
|
||||
if sch.crontab:
|
||||
pobj.crontab = sch.crontab
|
||||
pobj.interval = None
|
||||
elif sch.interval:
|
||||
pobj.interval = sch.interval
|
||||
pobj.crontab = None
|
||||
else:
|
||||
raise ParseError('不支持的定时策略')
|
||||
pobj.save()
|
||||
|
|
Loading…
Reference in New Issue