aboutsummaryrefslogtreecommitdiffstats
path: root/extra/cdx/cdx_reshape.py
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cdx/cdx_reshape.py')
-rw-r--r--extra/cdx/cdx_reshape.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/extra/cdx/cdx_reshape.py b/extra/cdx/cdx_reshape.py
index 6b3d6e5..28b6fc0 100644
--- a/extra/cdx/cdx_reshape.py
+++ b/extra/cdx/cdx_reshape.py
@@ -9,8 +9,7 @@ by_url = {}
for line in fileinput.input():
line = line.strip()
doc = json.loads(line)
- last = doc.get("summary", {}).get("last", "")
- if not last:
+ if doc.get("numRows") == 0:
continue
by_url[doc["line"]] = doc