Skip to content

Commit

Permalink
Showing lifted embargoes in release-ready table
Browse files Browse the repository at this point in the history
  • Loading branch information
fyvon committed Apr 19, 2024
1 parent 0970709 commit 16a625c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curation_tracker/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def browse_release_ready(request):
import_ready = CurationPublicationAnnotation.objects.using(curation_tracker).filter(curation_status='Curated - Awaiting Import')
context['table_to_import'] = Browse_CurationPublicationAnnotationReleaseReady(import_ready)

release_ready_count = CurationPublicationAnnotation.objects.using(curation_tracker).filter(curation_status='Imported - Awaiting Release').count()
release_ready_count = CurationPublicationAnnotation.objects.using(curation_tracker).filter(curation_status__in=('Imported - Awaiting Release', 'Embargo Lifted - Awaiting Release')).count()
context['studies_to_release_count'] = release_ready_count
if release_ready_count:
release_ready = CurationPublicationAnnotation.objects.using(curation_tracker).filter(curation_status='Imported - Awaiting Release')
release_ready = CurationPublicationAnnotation.objects.using(curation_tracker).filter(curation_status__in=('Imported - Awaiting Release', 'Embargo Lifted - Awaiting Release'))
context['table_to_release'] = Browse_CurationPublicationAnnotationReleaseReady(release_ready)

if context:
Expand Down

0 comments on commit 16a625c

Please sign in to comment.