fix: shutdown_or_startup bug

This commit is contained in:
caoqianming 2023-09-01 16:48:03 +08:00
parent a7b53bce2e
commit e4c49918ae
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def shutdown_or_startup(mplog: MpLog):
mpoint = mplog.mpoint
mgroup = mpoint.mgroup
now = timezone.now()
if mplog.tag_val == 1 and mgroup.is_running is False:
if mplog.tag_val == 1 and mgroup.is_runing is False:
# 从停到开
stlog = StLog.objects.filter(mgroup=mgroup).order_by('start_time').last()
stlog.end_time = now