From 2e740062546f6130e764551107d44f358c07ff82 Mon Sep 17 00:00:00 2001 From: Szabo Zoltan Date: Thu, 6 Jun 2024 10:53:44 +0200 Subject: [PATCH] Appealdocument reader fix --- api/management/commands/sync_appealdocs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/management/commands/sync_appealdocs.py b/api/management/commands/sync_appealdocs.py index 5289f49e7..6c9062701 100644 --- a/api/management/commands/sync_appealdocs.py +++ b/api/management/commands/sync_appealdocs.py @@ -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: @@ -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,