Debug getting thread context time

This commit is contained in:
localhost_frssoft 2022-10-14 20:49:32 +03:00
parent e4a5534edd
commit ab7a5cfa52

View file

@ -58,7 +58,11 @@ def scan_context_thread():
logger.debug(f'Осталось до закрытия сбора: {endings}') logger.debug(f'Осталось до закрытия сбора: {endings}')
if reserve_time: # Reduce instance load if reserve_time: # Reduce instance load
time.sleep(30) time.sleep(30)
get_thread_time = time.time()
descendants = get_status_context(status_id)['descendants'] descendants = get_status_context(status_id)['descendants']
get_thread_time2 = time.time()
get_thread_delta = get_thread_time2 - get_thread_time
logger.debug(f'Get thread time: {get_thread_delta}')
replyed = [] replyed = []
for status in descendants: for status in descendants:
if status['account']['acct'] == bot_acct: if status['account']['acct'] == bot_acct: