Explorar el Código

Log number of results on a page

master
JustAnotherArchivist hace 2 años
padre
commit
0f7a2b32a3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      ia-cdx-search

+ 1
- 1
ia-cdx-search Ver fichero

@@ -54,7 +54,7 @@ async def wait_first_and_print(tasks):
assert all(len(v) == len(fields) for v in o[1:]), 'got unexpected response format'
for row in o[1:]:
print(json.dumps(dict(zip(fields, row))))
print(f'Completed processing page {task._ia_cdx_page}', file = sys.stderr)
print(f'Completed processing page {task._ia_cdx_page} ({len(o) - 1} results)', file = sys.stderr)
return task._ia_cdx_page, connection




Cargando…
Cancelar
Guardar