fix: mtm/service note

This commit is contained in:
zty 2024-09-13 15:21:26 +08:00
parent 0453499ee5
commit 6c6a6ce440
1 changed files with 2 additions and 2 deletions

View File

@ -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: