Restrict proposals for due date

Avoid dates too far in the future.
This commit is contained in:
Eike Kettner
2020-06-26 01:27:11 +02:00
parent 91da3b149e
commit d79ae6233a
6 changed files with 53 additions and 11 deletions

View File

@ -92,6 +92,9 @@ let
text-analysis = {
max-length = 10000;
};
processing = {
max-due-date-years = 10;
};
convert = {
chunk-size = 524288;
max-image-size = 14000000;
@ -666,6 +669,23 @@ in {
description = "Settings for text analysis";
};
processing = mkOption {
type = types.submodule({
options = {
max-due-date-years = mkOption {
type = types.int;
default = defaults.processing.max-due-date-years;
description = ''
Restricts proposals for due dates. Only dates earlier than this
number of years in the future are considered.
'';
};
};
});
default = defaults.processing;
description = "General config for processing documents";
};
convert = mkOption {
type = types.submodule({
options = {