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

bugfix: show SAS_ID (output)

parent 6bf0e7d7
No related branches found
No related tags found
1 merge request!334updates after demo to SDCO
Pipeline #68948 passed
......@@ -295,8 +295,11 @@ class Task(models.Model):
"""
try:
for task in Task.objects.filter(sas_id=self.sas_id):
if task.archive['sas_id_archived']:
return task.archive['sas_id_archived']
try:
if task.archive['sas_id_archived']:
return task.archive['sas_id_archived']
except:
pass
except:
return None
......
......@@ -553,6 +553,7 @@ def get_filtered_tasks(request, pre_filtered_tasks=None, distinct=None):
# check filtered_tasks on the session
# if it is at its max limit, then this is not a query targeted at 1 SAS_ID.
# in that case don't apply the filter, so that all SAS_ID's show up on the page.
# nv: 15jan2024, Vlad didn't like this new behaviour
try:
filtered_tasks_on_session = len(request.session['filtered_tasks_as_list'])
if filtered_tasks_on_session != settings.QUERY_LIMIT_MULTI_CHANGE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment