mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 12:36:42 +00:00
If previous channel had decimal don't continue with decimals.
This commit is contained in:
parent
e7eab09dfc
commit
7292ad460f
1 changed files with 2 additions and 0 deletions
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue