Skip to content
Snippets Groups Projects
Commit 5a6797a6 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

bugfix in bugfix on archived page

(shouldn't show 1 task per sas_id)
parent e5bb002e
No related branches found
No related tags found
No related merge requests found
Pipeline #56043 passed
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
</div> </div>
<p class="footer"> Version 18 Aug 2023 <p class="footer"> Version 21 Aug 2023
</div> </div>
{% include 'taskdatabase/refresh.html' %} {% include 'taskdatabase/refresh.html' %}
......
...@@ -459,11 +459,10 @@ class ShowFinishedPage(ListView): ...@@ -459,11 +459,10 @@ class ShowFinishedPage(ListView):
@silk_profile(name='ShowFinishedPage') @silk_profile(name='ShowFinishedPage')
def get_queryset(self): def get_queryset(self):
##archived_tasks = Task.objects.filter(status=State.FINISHED.value) ###archived_tasks = Task.objects.filter(status=State.FINISHED.value)
##tasks = get_filtered_tasks(self.request, archived_tasks, "sas_id") ###tasks = get_filtered_tasks(self.request, archived_tasks)
tasks = get_filtered_tasks(self.request, None, "sas_id").filter(status=State.FINISHED.value)
tasks = get_filtered_tasks(self.request).filter(status=State.FINISHED.value)
paginator = Paginator(tasks, config.TASKS_PER_PAGE) # Show 50 tasks per page paginator = Paginator(tasks, config.TASKS_PER_PAGE) # Show 50 tasks per page
page = self.request.GET.get('page') page = self.request.GET.get('page')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment