More work on Confex API loop
This commit is contained in:
@@ -70,19 +70,29 @@ async def import_event_session_list(
|
||||
|
||||
start_loop = begin_loop
|
||||
loop_count = 0
|
||||
log.warning(f'INITIAL LOOP COUNT {loop_count}')
|
||||
# log.debug(f'INITIAL LOOP COUNT {loop_count}')
|
||||
loop_limit = end_loop # 200
|
||||
event_session_summary_li = []
|
||||
for event_session in event_session_li:
|
||||
loop_count = loop_count + 1
|
||||
log.warning(f'START LOOP COUNT {loop_count}')
|
||||
if loop_count > loop_limit:
|
||||
log.warning(f'BREAKING ON LOOP COUNT {loop_count}')
|
||||
break
|
||||
# log.debug(f'START LOOP COUNT {loop_count}')
|
||||
# if loop_count < start_loop: continue
|
||||
if loop_count > start_loop:
|
||||
log.warning(f'Continuing with LOOP COUNT {loop_count}')
|
||||
if loop_count >= start_loop and loop_count <= loop_limit:
|
||||
log.warning(f'PASSING WITH LOOP COUNT {loop_count}')
|
||||
pass
|
||||
else:
|
||||
log.info(f'Fake BREAKING (continue) ON LOOP COUNT {loop_count}')
|
||||
continue
|
||||
|
||||
# if start_loop < loop_count and loop_count > loop_limit:
|
||||
# log.warning(f'Fake BREAKING (continue) ON LOOP COUNT {loop_count}')
|
||||
# continue
|
||||
# elif loop_count > start_loop:
|
||||
# log.warning(f'PASSING WITH LOOP COUNT {loop_count}')
|
||||
# pass
|
||||
# else:
|
||||
# log.warning(f'CONTINUING (< start loop) ON LOOP COUNT {loop_count}')
|
||||
# continue
|
||||
log.warning(f'BEGIN: **** *** ** * Confex event session import loop #{loop_count} * ** *** ****')
|
||||
|
||||
confex_session_id = event_session.get('id')
|
||||
|
||||
Reference in New Issue
Block a user