Skip to content

Commit

Permalink
fix: resolved bug on broken fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Oct 19, 2024
1 parent a20fea1 commit 4b8fa16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/report-generation/run_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
date = Utility.get_yesterday_date()
logging.info(f"\t[INFO ][ExtractReport ] No date passed. Using yesterday date [{date}] as starting date.")
environment = os.getenv("REPORT_ENV", "prod")
if environment == "":
env = "prod"
logging.info(f"\t[INFO ][ExtractReport ] No environment passed. Using [{env}] environment as default.")
if environment.strip() == "":
environment = "prod"
logging.info(f"\t[INFO ][ExtractReport ] No environment passed. Using [{environment}] environment as default.")
logging.info(f"\t[INFO ][ExtractReport ] Starting report extraction for date [{date}] for type [{report_type}].")

# initialize parameters
Expand Down
6 changes: 3 additions & 3 deletions scripts/report-generation/run_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
date = Utility.get_yesterday_date()
logging.info(f"\t[INFO ][ExtractReport ] No date passed. Using yesterday date [{date}] as starting date.")
environment = os.getenv("REPORT_ENV", "prod")
if environment == "":
env = "prod"
logging.info(f"\t[INFO ][ExtractReport ] No environment passed. Using [{env}] environment as default.")
if environment.strip() == "":
environment = "prod"
logging.info(f"\t[INFO ][ExtractReport ] No environment passed. Using [{environment}] environment as default.")
logging.info(f"\t[INFO ][SendReport ] Starting notification handling for date [{date}] for type [{report_type}].")

# initialize parameters
Expand Down

0 comments on commit 4b8fa16

Please sign in to comment.