Skip to content

Commit

Permalink
Update exchange.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-rivera committed Nov 11, 2024
1 parent 8a5203d commit 47adc6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydeflate/core/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __post_init__(self):
self.exchange_data = self.exchange_rate(
self.source_currency, self.target_currency
)
if self.source_currency == "USA":
self.exchange_data["pydeflate_EXCHANGE_D"] = 1

def _get_exchange_rate(self, currency):
"""Helper function to fetch exchange rates for a given currency."""
Expand Down

0 comments on commit 47adc6a

Please sign in to comment.