From 6a596cac664a063bd2dc9ca99f2f19664970ed01 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 22 Jun 2024 16:41:17 +0100 Subject: Fix erroneous return statement --- pyblackbird_cc/resources/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pyblackbird_cc/resources') diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py index b566eee..cf6eb9d 100644 --- a/pyblackbird_cc/resources/views.py +++ b/pyblackbird_cc/resources/views.py @@ -35,9 +35,7 @@ def _get_pdf_collection_type(coll) -> str: for c in coll: if len(c) > 1: return "MULTI_PDF_MULTI_PAGE" - else: - return "MULTI_PDF_SINGLE_PAGE" - return "TODO" + return "MULTI_PDF_SINGLE_PAGE" # I want to create a dataclass here to hold the resource information to pass to the view -- cgit v1.2.3