Skip to content

Commit

Permalink
Merge pull request #2782 from freelawproject/2640-reduce-memory
Browse files Browse the repository at this point in the history
2640 reduce memory
  • Loading branch information
mlissner authored May 26, 2023
2 parents 30bea67 + e18749a commit d903794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cl/api/templates/bulk-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1 id="about">Bulk Legal Data</h1>


<h2 id="browsing">Browsing the Data Files</h2>
<p>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).
<p>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.
</p>
<p>
<a href="https://com-courtlistener-storage.s3-us-west-2.amazonaws.com/list.html?prefix=bulk-data/" class="btn btn-primary btn-lg">Browse Bulk Data</a>
Expand Down
3 changes: 1 addition & 2 deletions cl/corpus_importer/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions cl/simple_pages/templates/help/donation_help.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ <h3>What if the credit card I'm using for monthly donations is stolen or expires
<p>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.
</p>

<h3>How do I cancel or pause a monthly donation?</h3>
<p>If you set up the monthly donation while logged into your CourtListener account, you will be able to <a href="{% url "profile_donations" %}">see and cancel it via your profile</a>. If not, we will be happy to help you cancel or pause the donation if you <a href="{% url "contact" %}">send us a brief note</a>.
<h3>How do I cancel a monthly donation?</h3>
<p>If you set up the monthly donation while logged into your CourtListener account, you will be able to <a href="{% url "profile_donations" %}">see and pause it via your profile</a>. 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 <a href="{% url "contact" %}">send us a brief note</a> with the details.
</p>

<h3>How do I update my credit card information or use a different card?</h3>
Expand Down

0 comments on commit d903794

Please sign in to comment.