Skip to content

Commit

Permalink
test returning buffer instead of bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 committed Jan 9, 2025
1 parent 9f843c5 commit 61aa497
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/regtech_data_validator/data_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def df_to_download(
)
empty_df.write_csv(buffer, quote_style='non_numeric', include_header=True)
buffer.seek(0)
return buffer.getvalue()
return buffer
# return buffer.getvalue()

# get the check for the phase the results were in, so we can pull out static data from each
# found check
Expand Down Expand Up @@ -196,7 +197,8 @@ def df_to_download(

sorted_df.write_csv(buffer, quote_style='non_numeric', include_header=False)
buffer.seek(0)
return buffer.getvalue()
return buffer
# return buffer.getvalue()


def df_to_csv(df: pl.DataFrame) -> str:
Expand Down

0 comments on commit 61aa497

Please sign in to comment.