Update scheduled tasks table

* Tautulli/Tautulli-Issues#251
This commit is contained in:
JonnyWong16 2020-07-05 20:39:31 -07:00
parent 7fe1e542df
commit 99e395ddfa
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 14 additions and 13 deletions

View file

@ -28,7 +28,7 @@ DOCUMENTATION :: END
</tr>
</thead>
<tbody>
% for job in common.SCHEDULER_LIST:
% for job, job_type in common.SCHEDULER_LIST.items():
% if job in scheduled_jobs:
<%
sched_job = plexpy.SCHED.get_job(job)
@ -41,7 +41,7 @@ DOCUMENTATION :: END
<td>${helpers.format_timedelta_Hms(sched_job.next_run_time - now)}</td>
<td>${sched_job.next_run_time.astimezone(plexpy.SYS_TIMEZONE).strftime('%Y-%m-%d %H:%M:%S')}</td>
</tr>
% elif job in ('Check for server response', 'Check for active sessions', 'Check for recently added items') and plexpy.WS_CONNECTED:
% elif job_type == 'websocket' and plexpy.WS_CONNECTED:
<tr>
% if job == 'Check for active sessions':
<td><a class="queue-modal-link" href="#" data-queue="active sessions">${job}</a></td>