From 392acf5a734b7d8afabd1d0ec492c5a913924cee Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Sat, 8 Mar 2025 10:09:57 +0000 Subject: [PATCH] running ability improved --- etl/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etl/main.py b/etl/main.py index ed71873..6fb777c 100644 --- a/etl/main.py +++ b/etl/main.py @@ -38,13 +38,13 @@ def main(): def print_hello(): print("hello man") -# def create_temp_file(dict_content): -# with tempfile.NamedTemporaryFile(mode='w+', delete=False, suffix='.txt') as temp_file: -# formatted_content = pformat(dict_content) -# temp_file.write(formatted_content + "\n") -# temp_file_path = temp_file.name +def create_temp_file(dict_content): + with tempfile.NamedTemporaryFile(mode='w+', delete=False, suffix='.txt') as temp_file: + formatted_content = pformat(dict_content) + temp_file.write(formatted_content + "\n") + temp_file_path = temp_file.name -# logger.info(f"Temporary file created at: {temp_file_path}") + logger.info(f"Temporary file created at: {temp_file_path}") if __name__ == "__main__":