From 543cc29ee19cfb4aedfb98e0845b49d813af667f Mon Sep 17 00:00:00 2001 From: Adam Kelly Date: Tue, 28 Apr 2020 14:59:48 +0100 Subject: [PATCH] Increase limit to 500 entries and warn about limit. --- fedireads/goodreads_import.py | 4 ++-- fedireads/templates/import.html | 2 ++ fedireads/views.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fedireads/goodreads_import.py b/fedireads/goodreads_import.py index 7d4abdd5e..5bbf63198 100644 --- a/fedireads/goodreads_import.py +++ b/fedireads/goodreads_import.py @@ -7,8 +7,8 @@ from fedireads.tasks import app from fedireads.models import ImportJob, ImportItem from fedireads.status import create_notification -# TODO: remove or notify about this in the UI -MAX_ENTRIES = 20 +# TODO: remove or increase once we're confident it's not causing problems. +MAX_ENTRIES = 500 def create_job(user, csv_file): diff --git a/fedireads/templates/import.html b/fedireads/templates/import.html index c73c095fa..6ea032a34 100644 --- a/fedireads/templates/import.html +++ b/fedireads/templates/import.html @@ -8,6 +8,8 @@ {{ import_form.as_p }} +

+ Imports are limited in size, and only the first {{ limit }} items will be imported.

Recent Imports