Development
This commit is contained in:
parent
76c7d81466
commit
b0892a2ddd
1 changed files with 1 additions and 1 deletions
|
|
@ -430,7 +430,7 @@ def _blocklist_stats_html(core):
|
||||||
entries = sum(1 for _ in f)
|
entries = sum(1 for _ in f)
|
||||||
mtime = int(os.path.getmtime(bl_path))
|
mtime = int(os.path.getmtime(bl_path))
|
||||||
size_str = _fmt_bytes(os.path.getsize(bl_path))
|
size_str = _fmt_bytes(os.path.getsize(bl_path))
|
||||||
last_refreshed = f'{_fmt_timestamp(mtime)} ({_relative_time(mtime)})'
|
last_refreshed = f'{datetime.fromtimestamp(mtime).strftime("%Y-%m-%d %H:%M")} ({_relative_time(mtime)})'
|
||||||
except Exception:
|
except Exception:
|
||||||
entries, size_str, last_refreshed = '-', '-', 'Never'
|
entries, size_str, last_refreshed = '-', '-', 'Never'
|
||||||
rows += (f'<tr>'
|
rows += (f'<tr>'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue