diff --git a/BlockedFrontend/registry.py b/BlockedFrontend/registry.py index b3f2301..cf1741b 100644 --- a/BlockedFrontend/registry.py +++ b/BlockedFrontend/registry.py @@ -29,8 +29,8 @@ def registry_seizures(page=1): newdate = newdate.date() pagecount = get_pagecount(count, pagesize) - sql = ("select url, max(uls.created) created, max(uls.last_blocked) last_blocked, string_agg(isps.description, ';') isp_description " - "from url_latest_status uls " + sql = ("select url, max(uls.created)::date created, max(uls.last_blocked) last_blocked, string_agg(isps.description, ';') isp_description " + "from public.url_latest_status uls " "inner join urls using (urlid) " "inner join isps on network_name = isps.name " "where blocktype = 'SUSPENSION' " diff --git a/BlockedFrontend/templates/registry/registry_seizures.html b/BlockedFrontend/templates/registry/registry_seizures.html index fae4e29..a204011 100644 --- a/BlockedFrontend/templates/registry/registry_seizures.html +++ b/BlockedFrontend/templates/registry/registry_seizures.html @@ -33,7 +33,7 @@

{{ count }} seized domain{{ '' if count == 1 else 's' }} found

{% endfor %} - {{ row.created|fmdate }} {% if row.created.date() == newdate %}New{% endif %} + {{ row.created|fmdate }} {% if row.created == newdate %}New{% endif %} {{ row.last_blocked|fmdate }} {% endfor %}