INNER CODE UNIT · Python
check_updates_diff
rfc-st/humble · humble.py:317
def check_updates_diff(days_diff, github_version, local_version):
"""`humble` update logic.
Check whether the local version is more than a month older than the latest
on GitHub, related to `-v` option.
"""
print(f" \n{STYLE[0]}{get_detail('[humble_latest]', replace=True)} \
{github_version} \n {get_detail('[humble_local]', replace=True)} \
{local_version}{STYLE[4]}")
if days_diff > DAYS_DIFF:
print(f"\n{get_detail('[humble_not_recent]')}\n\
{get_detail('[github_humble]', replace=True)}\n")
else:
print_detail("[humble_recent]", 8)
def fng_statistics_top():
"""Print top 20 HTTP fingerprint header statistics.