mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-12 16:23:01 +00:00
Debug getting thread context time
This commit is contained in:
parent
e4a5534edd
commit
ab7a5cfa52
@ -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 New Issue
Block a user