mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Restrict proposals for due date
Avoid dates too far in the future.
This commit is contained in:
@ -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 = {
|
||||
|
Reference in New Issue
Block a user