shuffle slot and sim

This commit is contained in:
2022-04-01 09:20:09 +02:00
parent 595019ac7f
commit 871477dd35
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -1,5 +1,6 @@
import datetime
import logging
import random
import re
import sys
import time
@@ -169,7 +170,10 @@ def on_ready_for_otp(e: Event, commandor: CommandorPage):
def start_book():
start_slot_number = 1
end_slot_number = 21
for i in range(start_slot_number, end_slot_number + 1):
slot_list = list(range(start_slot_number, end_slot_number + 1))
random.shuffle(slot_list)
for i in slot_list:
random.shuffle(params.MODEM_POOL_PORTS)
card_pool.reset()
logger.info("will switch to " + str(i))
global current_card_pool_slot