~cofob/AlfisViewer

da20cc1d4491e8207cc16e2e8f84320e3eaacee7 — Vasiliy Petrov 2 years ago 87fba6f
Fix stats error
1 files changed, 4 insertions(+), 1 deletions(-)

M index/views.py
M index/views.py => index/views.py +4 -1
@@ 77,7 77,10 @@ def stats(request):
    empty_domains = 0
    lst = []
    for d in Domain.objects.all():
        domain = list(alfis.Domains.filter(identity=unhexlify(d.hash)))[-1]
        try:
            domain = list(alfis.Domains.filter(identity=unhexlify(d.hash)))[-1]
        except IndexError:
            continue
        data = loads(domain.data)
        data["records"] = data.get("records", [])
        if not data["records"]: