summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py4
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