mirror of
https://github.com/jellyfin/jellyfin-plugin-reports.git
synced 2024-11-26 23:20:36 +00:00
Apply suggestions from @crobibero code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
582c301597
commit
d72eda9c3f
@ -153,7 +153,7 @@ namespace Jellyfin.Plugin.Reports.Api.Data
|
||||
nextRow += rows.Count();
|
||||
}
|
||||
|
||||
IXLWorkbook workbook = new XLWorkbook(XLEventTracking.Disabled);
|
||||
using IXLWorkbook workbook = new XLWorkbook(XLEventTracking.Disabled);
|
||||
IXLWorksheet worksheet = workbook.Worksheets.Add("ReportExport");
|
||||
|
||||
// Add report rows
|
||||
@ -198,7 +198,6 @@ namespace Jellyfin.Plugin.Reports.Api.Data
|
||||
// Save workbook to stream and return
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
workbook.SaveAs(memoryStream);
|
||||
workbook.Dispose();
|
||||
memoryStream.Position = 0;
|
||||
return memoryStream;
|
||||
}
|
||||
|
@ -14,12 +14,7 @@ artifacts:
|
||||
- "ClosedXML.dll"
|
||||
- "DocumentFormat.OpenXml.dll"
|
||||
- "ExcelNumberFormat.dll"
|
||||
- "Microsoft.Win32.SystemEvents.dll"
|
||||
- "System.Drawing.Common.dll"
|
||||
- "System.IO.Packaging.dll"
|
||||
- "runtimes/unix/lib/netcoreapp2.0/System.Drawing.Common.dll"
|
||||
- "runtimes/win/lib/netcoreapp2.0/Microsoft.Win32.SystemEvents.dll"
|
||||
- "runtimes/win/lib/netcoreapp2.0/System.Drawing.Common.dll"
|
||||
changelog: |2-
|
||||
### Bug Fixes ###
|
||||
- Fix CSV Export Format (#73) @mwildgoose
|
||||
|
Loading…
Reference in New Issue
Block a user