mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
running ability improved
This commit is contained in:
parent
5fe5063254
commit
392acf5a73
1 changed files with 6 additions and 6 deletions
12
etl/main.py
12
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__":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue