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 | 31 | print('Counting stats for %s:' % project.name) |
32 | 32 | for pipeline in project.pipelines.all(): |
33 | 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 | 35 | if doc.metadata.filter(name='channel').exists() and \ |
36 | 36 | doc.metadata.get(name='channel').value.startswith('prasa_'): |
37 | 37 | print('---- counting segments in %s (%s)' % (doc.id, doc.metadata.get(name='channel').value)) |
... | ... |