Skip to content

Commit

Permalink
Appealdocument reader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szabozoltan69 committed Jun 6, 2024
1 parent d9828fc commit 2e74006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/management/commands/sync_appealdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def handle(self, *args, **options):
logger.info("Starting appeal document ingest")

if options["fullscan"]:
# FIXME: should be inserted to cron jobs, 4 monthly or so. Or create a calendar note for maintainer.
# If the `--fullscan` option is passed (at the end of command), check ALL appeals. Runs an hour!
# TODO: should be inserted to cron jobs, 4 monthly or so. Or create a calendar note for maintainer.
# If the `--fullscan` option is passed (at the end of command), check ALL appeals. Runs 20 mins!
print("Doing a full scan of all Appeals")
qset = Appeal.objects.all()
else:
Expand Down Expand Up @@ -88,7 +88,7 @@ def handle(self, *args, **options):
AppealDocument.objects.create(
document_url=document_url,
appeal_id=appeal_id,
name=result["AppealsName"],
name=result["AppealsName"][:100],
description=result["AppealOrigType"],
type_id=appealtype_id,
iso_id=iso,
Expand Down

0 comments on commit 2e74006

Please sign in to comment.