Skip to content

Commit

Permalink
revert buffer bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 committed Jan 10, 2025
1 parent 61aa497 commit 33384eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/regtech_data_validator/data_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 33384eb

Please sign in to comment.