mirror of https://gitlab.com/bashrc2/epicyon
Another timing point
parent
943465017a
commit
346a115dbc
|
|
@ -2313,19 +2313,21 @@ def individual_post_as_html(signing_priv_key_pem: str,
|
||||||
# maximum number of different emoji reactions which can be added to a post
|
# maximum number of different emoji reactions which can be added to a post
|
||||||
max_reaction_types = 5
|
max_reaction_types = 5
|
||||||
|
|
||||||
|
# if downloads of avatar images aren't enabled then we can do more
|
||||||
|
# accurate timing of different parts of the code
|
||||||
|
enable_timing_log = not allow_downloads
|
||||||
|
|
||||||
# benchmark
|
# benchmark
|
||||||
post_start_time = time.time()
|
post_start_time = time.time()
|
||||||
|
|
||||||
post_actor = get_actor_from_post(post_json_object)
|
post_actor = get_actor_from_post(post_json_object)
|
||||||
|
|
||||||
|
_log_post_timing(enable_timing_log, post_start_time, '0')
|
||||||
|
|
||||||
# ZZZzzz
|
# ZZZzzz
|
||||||
if is_person_snoozed(base_dir, nickname, domain, post_actor):
|
if is_person_snoozed(base_dir, nickname, domain, post_actor):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
# if downloads of avatar images aren't enabled then we can do more
|
|
||||||
# accurate timing of different parts of the code
|
|
||||||
enable_timing_log = not allow_downloads
|
|
||||||
|
|
||||||
_log_post_timing(enable_timing_log, post_start_time, '1')
|
_log_post_timing(enable_timing_log, post_start_time, '1')
|
||||||
|
|
||||||
avatar_position = ''
|
avatar_position = ''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue