From 33384ebbfb21e5157366e175230cddb84dd3f54e Mon Sep 17 00:00:00 2001 From: lchen <73617864+lchen-2101@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:04:49 -0800 Subject: [PATCH] revert buffer bytes --- src/regtech_data_validator/data_formatters.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/regtech_data_validator/data_formatters.py b/src/regtech_data_validator/data_formatters.py index 8c2def7..faf7864 100644 --- a/src/regtech_data_validator/data_formatters.py +++ b/src/regtech_data_validator/data_formatters.py @@ -134,8 +134,7 @@ def df_to_download( ) empty_df.write_csv(buffer, quote_style='non_numeric', include_header=True) buffer.seek(0) - return buffer - # return buffer.getvalue() + return buffer.getvalue() # get the check for the phase the results were in, so we can pull out static data from each # found check @@ -197,8 +196,7 @@ def df_to_download( sorted_df.write_csv(buffer, quote_style='non_numeric', include_header=False) buffer.seek(0) - return buffer - # return buffer.getvalue() + return buffer.getvalue() def df_to_csv(df: pl.DataFrame) -> str: