mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-22 20:43:32 +02:00
Debug getting thread context time
This commit is contained in:
parent
e4a5534edd
commit
ab7a5cfa52
1 changed files with 4 additions and 0 deletions
|
@ -58,7 +58,11 @@ def scan_context_thread():
|
|||
logger.debug(f'Осталось до закрытия сбора: {endings}')
|
||||
if reserve_time: # Reduce instance load
|
||||
time.sleep(30)
|
||||
get_thread_time = time.time()
|
||||
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 = []
|
||||
for status in descendants:
|
||||
if status['account']['acct'] == bot_acct:
|
||||
|
|
Loading…
Reference in a new issue