File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ def view_task(request, id):
56
56
def home (request ):
57
57
tz = 'Asia/Taipei'
58
58
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 (
61
61
func__exact = 'doc_tasks.tasks.update_one_page'
62
- ).order_by ('-started' )[: 10 ]
62
+ ).order_by ('-started' )
63
63
return render (request , 'index.html' , {
64
- 'tasks ' : tasks ,
64
+ 'one_page_tasks ' : one_page_tasks ,
65
65
'queued_tasks' : queued_tasks ,
66
66
'tz' : tz ,
67
67
})
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ <h2>Doc Page Built History</h2>
34
34
</ tr >
35
35
</ thead >
36
36
< tbody >
37
- {% for task in tasks %}
37
+ {% for task in one_page_tasks %}
38
38
< tr >
39
39
< td >
40
40
{% if task.success %}
You can’t perform that action at this time.
0 commit comments