diff options
author | Danglewood <85772166+deeleeramone@users.noreply.github.com> | 2024-06-26 14:16:49 -0700 |
---|---|---|
committer | Danglewood <85772166+deeleeramone@users.noreply.github.com> | 2024-06-26 14:16:49 -0700 |
commit | aa990559aff40f40d4731183dd154a39f6b2d128 (patch) | |
tree | 78f8f05115a50ac2f67708ae4adcd63460290e62 | |
parent | 975fa5d6ecf5a61bc36dd17233afbd01a7f049e8 (diff) |
black
-rw-r--r-- | openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py b/openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py index a4cee90201a..d88b4b501a4 100644 --- a/openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py +++ b/openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py @@ -46,9 +46,7 @@ class GovernmentUSTreasuryPricesFetcher( today = date.today() last_bd = ( - today - timedelta(today.weekday() - 4) - if today.weekday() > 4 - else today + today - timedelta(today.weekday() - 4) if today.weekday() > 4 else today ) if params.get("date") is None: params["date"] = last_bd |