From dfb5530cb1a5164c4f5783d7c9050b76b730e971 Mon Sep 17 00:00:00 2001 From: Michael Lissner Date: Thu, 25 May 2023 23:03:19 -0700 Subject: [PATCH 1/2] perf(tasks): Only import pandas if needed This should help reduce memory. --- cl/corpus_importer/tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cl/corpus_importer/tasks.py b/cl/corpus_importer/tasks.py index 77b5d6d427..2e1d5b4ed7 100644 --- a/cl/corpus_importer/tasks.py +++ b/cl/corpus_importer/tasks.py @@ -2,14 +2,12 @@ import logging import os import shutil -import time from datetime import date from io import BytesIO from tempfile import NamedTemporaryFile from typing import Any, Dict, List, Optional, Pattern, Tuple, Union import internetarchive as ia -import pandas as pd import requests from celery import Task from celery.exceptions import SoftTimeLimitExceeded @@ -2059,6 +2057,7 @@ def make_csv_file( :return: None, The function saves a CSV file in disk. """ + import pandas as pd # Only import pandas if function is called. csv_file = os.path.join( settings.MEDIA_ROOT, From e18749af909cb4910c23d422846a5e277b27cffd Mon Sep 17 00:00:00 2001 From: Michael Lissner Date: Thu, 25 May 2023 23:04:11 -0700 Subject: [PATCH 2/2] feat(docs): Improve api and donate docs --- cl/api/templates/bulk-data.html | 2 +- cl/simple_pages/templates/help/donation_help.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cl/api/templates/bulk-data.html b/cl/api/templates/bulk-data.html index f3f140554c..7021cfe276 100644 --- a/cl/api/templates/bulk-data.html +++ b/cl/api/templates/bulk-data.html @@ -50,7 +50,7 @@

Bulk Legal Data

Browsing the Data Files

-

As they are generated, files are streamed to an AWS S3 bucket. Dates are added to the filenames indicating when their generation began (in the UTC timezone). +

As they are generated, files are streamed to an AWS S3 bucket. Files are named with their generation time (UTC) and object type. Files are snapshots, not deltas.

Browse Bulk Data diff --git a/cl/simple_pages/templates/help/donation_help.html b/cl/simple_pages/templates/help/donation_help.html index 1edd6ebaca..a6a69f6682 100644 --- a/cl/simple_pages/templates/help/donation_help.html +++ b/cl/simple_pages/templates/help/donation_help.html @@ -101,8 +101,8 @@

What if the credit card I'm using for monthly donations is stolen or expires

For American credit cards, our credit card processor is usually able to handle these issues seamlessly. If not, we'll send you an email when your card fails.

-

How do I cancel or pause a monthly donation?

-

If you set up the monthly donation while logged into your CourtListener account, you will be able to see and cancel it via your profile. If not, we will be happy to help you cancel or pause the donation if you send us a brief note. +

How do I cancel a monthly donation?

+

If you set up the monthly donation while logged into your CourtListener account, you will be able to see and pause it via your profile. If not you were not logged in when you placed the donation, we will be happy to help you cancel or pause the donation if you send us a brief note with the details.

How do I update my credit card information or use a different card?