If previous channel had decimal don't continue with decimals.

This commit is contained in:
SergeantPanda 2025-07-14 16:58:27 -05:00
parent e7eab09dfc
commit 7292ad460f

View file

@ -1012,6 +1012,8 @@ def sync_auto_channels(account_id):
channels_created += 1
current_channel_number += 1.0
if current_channel_number % 1 != 0: # Has decimal
current_channel_number = int(current_channel_number) + 1.0
logger.debug(f"Created auto channel: {channel.channel_number} - {channel.name}")