fix: tran_time_to_mstate
This commit is contained in:
parent
1f8bdd0461
commit
d940c82e34
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue