Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2640 reduce memory #2782

Merged
merged 2 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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