Skip to content

Commit

Permalink
Add suppression status to pagfiles output
Browse files Browse the repository at this point in the history
  • Loading branch information
SamStudio8 committed Jan 25, 2022
1 parent 27f5a82 commit 8691a2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion majora2/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ def task_get_pagfiles(request, api_o, json_data, user=None, **kwargs):
artifacts = models.DigitalResourceArtifact.objects.filter(groups__id__in=pag_ids, groups__publishedartifactgroup__quality_groups__test_group = t_group)

# Collapse into list items
artifacts = list(artifacts.values_list('groups__publishedartifactgroup__published_name', 'current_kind', 'current_path', 'current_hash', 'current_size', 'groups__publishedartifactgroup__quality_groups__is_pass'))
# 2022-01-25 Slot is_suppressed at -2 index because Ocarina assumes QC data is at index -1 for some god forsaken reason
artifacts = list(artifacts.values_list('groups__publishedartifactgroup__published_name', 'current_kind', 'current_path', 'current_hash', 'current_size', 'groups__publishedartifactgroup__is_suppressed', 'groups__publishedartifactgroup__quality_groups__is_pass'))

try:
api_o["get"] = {}
Expand Down

0 comments on commit 8691a2d

Please sign in to comment.