Commit 95e06a455b62a32d3640f72a0ad157221a48f955
1 parent
9a0f7741
Change count_prasa_orth_freq documents filtering.
Showing
1 changed file
with
1 additions
and
1 deletions
collector/projects/nkjp/management/commands/count_prasa_orth_freq.py
@@ -31,7 +31,7 @@ class Command(BaseCommand): | @@ -31,7 +31,7 @@ class Command(BaseCommand): | ||
31 | print('Counting stats for %s:' % project.name) | 31 | print('Counting stats for %s:' % project.name) |
32 | for pipeline in project.pipelines.all(): | 32 | for pipeline in project.pipelines.all(): |
33 | print('-- counting stats for %s:' % pipeline.name) | 33 | print('-- counting stats for %s:' % pipeline.name) |
34 | - for doc in pipeline.documents.filter(image=False, broken_source=False): | 34 | + for doc in pipeline.documents.filter(indexed=True): |
35 | if doc.metadata.filter(name='channel').exists() and \ | 35 | if doc.metadata.filter(name='channel').exists() and \ |
36 | doc.metadata.get(name='channel').value.startswith('prasa_'): | 36 | doc.metadata.get(name='channel').value.startswith('prasa_'): |
37 | print('---- counting segments in %s (%s)' % (doc.id, doc.metadata.get(name='channel').value)) | 37 | print('---- counting segments in %s (%s)' % (doc.id, doc.metadata.get(name='channel').value)) |