From 7acc31ec979240b16e31306474cd225b7f6febd0 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 7 Jun 2025 19:27:59 -0500 Subject: [PATCH] Allow for tuners as low as 1 instead of 2. Closes #149 --- apps/hdhr/api_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/hdhr/api_views.py b/apps/hdhr/api_views.py index 278efc36..0d7b77e0 100644 --- a/apps/hdhr/api_views.py +++ b/apps/hdhr/api_views.py @@ -79,8 +79,8 @@ class DiscoverAPIView(APIView): # Otherwise use the limited profile sum plus custom streams tuner_count = limited_tuners + custom_stream_count - # 5. Ensure minimum of 2 tuners - tuner_count = max(2, tuner_count) + # 5. Ensure minimum of 1 tuners + tuner_count = max(1, tuner_count) logger.debug(f"Calculated tuner count: {tuner_count} (limited profiles: {limited_tuners}, custom streams: {custom_stream_count}, unlimited: {has_unlimited})")