Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dantheta committed Apr 5, 2021
1 parent 5d52fc9 commit 8c95332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BlockedFrontend/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' "
Expand Down
2 changes: 1 addition & 1 deletion BlockedFrontend/templates/registry/registry_seizures.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h3>{{ count }} seized domain{{ '' if count == 1 else 's' }} found</h3>
{% endfor %}
</ul>
</td>
<td>{{ row.created|fmdate }} {% if row.created.date() == newdate %}<span class="label label-info">New</span>{% endif %}</td>
<td>{{ row.created|fmdate }} {% if row.created == newdate %}<span class="label label-info">New</span>{% endif %}</td>
<td>{{ row.last_blocked|fmdate }}</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 8c95332

Please sign in to comment.