Skip to content

Commit 1d290e0

Browse files
committed
set DATA_UPLOAD_MAX_NUMBER_FIELDS to 3000
This is so we don't error on bulk add by party forms with lots of ballots
1 parent b203d8b commit 1d290e0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ services:
5252
- psql-data:/var/lib/postgresql/data
5353
ports:
5454
- 54321:5432
55+
healthcheck:
56+
test: pg_isready
57+
interval: 30s
58+
timeout: 60s
59+
retries: 5
60+
start_period: 80s

Diff for: ynr/settings/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,10 @@ def root(*path):
454454
"SOPN_UPDATE_NOTIFICATION_EMAILS", "[email protected]"
455455
).split(",")
456456

457+
# The maximum number of fields that can be uploaded in a single request.
458+
DATA_UPLOAD_MAX_NUMBER_FIELDS = 3000
459+
460+
457461
# import application constants
458462
from .constants.needs_review import * # noqa
459463
from .constants.csv_fields import * # noqa

0 commit comments

Comments
 (0)