Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dantheta committed May 11, 2021
1 parent d6079ff commit 29b83fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BlockedFrontend/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def registry_seizures(page=1):

res = NORM.Query(g.conn,
"select count(distinct urlid), max(created) from public.url_latest_status "
"where blocktype = 'SUSPENSION'",
"left join public.url_hierarchy h using (urlid) "
"where blocktype = 'SUSPENSION' and (parent_urlid = h.urlid or h.urlid is null) ",
[])
row = res.fetchone()
(count, newdate) = row
Expand Down

0 comments on commit 29b83fa

Please sign in to comment.