优化用户检测流程

This commit is contained in:
Jalin
2019-01-22 21:53:41 +08:00
parent dac614663d
commit fe5e82f2ff
6 changed files with 35 additions and 36 deletions

View File

@@ -57,6 +57,6 @@ def convert_job_to_info(job: UserJob):
'name': job.get_name(),
'is_ready': job.is_ready,
'is_loaded': job.user_loaded, # 是否成功加载 ready 是当前是否可用
'last_heartbeat': timestamp_to_time(job.last_heartbeat),
'last_heartbeat': timestamp_to_time(job.last_heartbeat) if job.last_heartbeat else '-',
'login_num': job.login_num
}