mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-12-23 20:29:48 +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}')
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user