Skip to content

Commit 0f9633c

Browse files
author
Sandro Lange
committed
fix: resolves some errors with the mcp tool to export documents by query
1 parent 1ebb1be commit 0f9633c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ExportPaperless.Excel/Services/ExcelExportService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public MemoryStream GenerateExcel(List<PaperlessDocument> documents, List<string
6464
FormatCellAsHyperlink(doc.Url.ToString(), urlCell);
6565
row.Append(urlCell);
6666

67-
if (customFields == null)
67+
if (customFields != null)
6868
{
6969
foreach (var fieldName in customFields)
7070
{

ExportPaperless.McpServer/Tools/ExportFromPaperlessTools.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public async Task<IEnumerable<AIContent>> ExportSavedViewMetadata(
7272
public async Task<IEnumerable<AIContent>> ExportPaperlessDocumentsByQuery(
7373
HttpClient httpClient,
7474
[Description("The from date filter specifying to list all documents created after or at the given date")]
75-
DateTime? from,
75+
DateTime from,
7676
[Description("The to date filter specifying to list all documents created before or at the given date")]
77-
DateTime? to,
77+
DateTime to,
7878
[Description("The tags to filter documents by, documents include all given tags")]
7979
List<string> includeTags,
8080
[Description("The tags to exclude documents by, documents must not have these given tags")]

0 commit comments

Comments
 (0)