Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
quadrismegistus committed Dec 5, 2023
1 parent e5feb3e commit ef660c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions ppa/archive/management/commands/generate_textcorpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""

import os
import jsonlines
import json
from django.core.management.base import BaseCommand
from ppa.archive.models import DigitizedWork
Expand Down Expand Up @@ -73,7 +72,6 @@ def get_query(order=True):
q=get_query(order=True)
q.set_limits(step, step+batch_size)
for d in q:
print(d)
yield d

def handle(self, *args, **options):
Expand All @@ -82,7 +80,6 @@ def handle(self, *args, **options):
"""
# options
path = options['path']
print(options)
doclimit = options['doc_limit'] if options['doc_limit']>0 else None
progress = options['verbosity']>0
batch_size = options['batch']
Expand Down
5 changes: 1 addition & 4 deletions ppa/archive/tests/test_generate_textcorpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
from django.core.management import call_command
from django.core.management.base import CommandError
import os
import jsonlines,json

# mock results for acet query used to get document IDs and page counts
mock_solr_facets = {"group_id_s": {"doc_1": 2, "doc_2": 1}}
import json

# mock result for solr document data
mock_solr_docs = [
Expand Down

0 comments on commit ef660c9

Please sign in to comment.