diff --git a/apps/mtm/services.py b/apps/mtm/services.py index dafbd031..0891e21d 100644 --- a/apps/mtm/services.py +++ b/apps/mtm/services.py @@ -132,12 +132,12 @@ def mgroup_run_change(mgroup: Mgroup, new_run: bool, last_timex: datetime, note: last_stlog, _ = StLog.objects.get_or_create( mgroup=mgroup, is_shutdown=True, - reason = note, start_time=last_timex, defaults={ 'title': '停机', 'end_time': None, - 'sflog': get_sflog(mgroup, last_timex) + 'sflog': get_sflog(mgroup, last_timex), + 'reason':note, } ) elif new_run is False: