8000 Specify enqueued tasks · python-doc-tw/pydoc_autobuild@c764c59 · GitHub
[go: up one dir, main page]

Skip to content

Commit c764c59

Browse files
committed
Specify enqueued tasks
1 parent 8b3deef commit c764c59

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc_tasks/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ def view_task(request, id):
5656
def home(request):
5757
tz = 'Asia/Taipei'
5858
activate(tz)
59-
queued_tasks = OrmQ.objects.all().order_by('lock')[:10]
60-
tasks = Task.objects.all().filter(
59+
queued_tasks = OrmQ.objects.all().order_by('lock')
60+
one_page_tasks = Task.objects.all().filter(
6161
func__exact='doc_tasks.tasks.update_one_page'
62-
).order_by('-started')[:10]
62+
).order_by('-started')
6363
return render(request, 'index.html', {
64-
'tasks': tasks,
64+
'one_page_tasks': one_page_tasks,
6565
'queued_tasks': queued_tasks,
6666
'tz': tz,
6767
})

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2>Doc Page Built History</h2>
3434
</tr>
3535
</thead>
3636
<tbody>
37-
{% for task in tasks %}
37+
{% for task in one_page_tasks %}
3838
<tr>
3939
<td>
4040
{% if task.success %}

0 commit comments

Comments
 (0)
0