Skip to content

Commit

Permalink
fix string to boolean issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Oct 16, 2024
1 parent 2d36ef9 commit 6d41ab6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
def main() -> None:
# valid chain names: mainnet, xdai, arbitrum_one
chain_name = os.getenv("CHAIN_NAME")
process_imbalances = os.getenv("PROCESS_IMBALANCES", True)
process_prices = os.getenv("PROCESS_PRICES", False)
process_fees = os.getenv("PROCESS_FEES", False)
process_imbalances = os.getenv("PROCESS_IMBALANCES", "True") == "True"
process_prices = os.getenv("PROCESS_PRICES", "False") == "True"
process_fees = os.getenv("PROCESS_FEES", "False") == "True"

if chain_name is None:
logger.error("CHAIN_NAME environment variable is not set.")
Expand Down

0 comments on commit 6d41ab6

Please sign in to comment.