Development

This commit is contained in:
Matthew Grotke 2026-06-09 22:42:37 -04:00
parent e8717710d4
commit 47a7c564ab
3 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@
"type": "stat_card",
"label": "DHCP Leases",
"value": "%STAT_LEASE_COUNT%",
"sub": "%STAT_LEASES_LINK%",
"sub": "active leases",
"variant": "accent"
},
{

View file

@ -253,7 +253,6 @@ def collect_tokens(cfg):
lease_count = len(live_dhcp_leases())
tokens['STAT_LEASE_COUNT'] = str(lease_count)
tokens['STAT_LEASES_LINK'] = f'<a href="/dhcpleases">{lease_count} active lease{"s" if lease_count != 1 else ""}</a>'
tokens['STAT_VLAN_COUNT'] = str(len(non_vpn_vlans))
tokens['STAT_PUBLIC_IP'] = ip_str
tokens['STAT_DDNS_HOSTNAME'] = domains_sub