diff --git a/apps/wpm/datax.py b/apps/wpm/datax.py index c6d546ce..7eadee1d 100644 --- a/apps/wpm/datax.py +++ b/apps/wpm/datax.py @@ -14,7 +14,7 @@ def tran_time_to_mstate(mstate_json, reminder_interval_list, work_start_time: da return '未运行' for ind, val in enumerate(reminder_interval_list): if work_start_time + timedelta(minutes=val) > now: - return mstate_json[ind] + return mstate_json[ind]['name'] return '未运行' class AnaViewSet(GenericViewSet):