fix: Don't hide domains that have owner index 0

This commit is contained in:
Nathan Woodburn 2024-02-20 10:45:58 +11:00
parent 703f1ed5c1
commit 5e21074b24
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -6,10 +6,6 @@ from flask import render_template
def domains(domains, mobile=False): def domains(domains, mobile=False):
html = '' html = ''
for domain in domains: for domain in domains:
owner = domain['owner']
if 'index' in owner:
if owner['index'] == 0:
continue
expires = domain['stats'] expires = domain['stats']
if 'daysUntilExpire' in expires: if 'daysUntilExpire' in expires:
expires = expires['daysUntilExpire'] expires = expires['daysUntilExpire']