Skip to content

Commit f1c7b72

Browse files
authored
fix: asset_type market open bug (#60)
* fix asset type market open * bump
1 parent 195e81a commit f1c7b72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ignore_missing_imports = true
44

55
[tool.poetry]
66
name = "pyth-observer"
7-
version = "0.1.13"
7+
version = "0.1.14"
88
description = "Alerts and stuff"
99
authors = []
1010
readme = "README.md"

pyth_observer/check/price_feed.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def state(self) -> PriceFeedState:
5757

5858
def run(self) -> bool:
5959
market_open = is_market_open(
60-
self.__state.asset_type,
60+
self.__state.asset_type.lower(),
6161
datetime.now(ZoneInfo("America/New_York")),
6262
)
6363

@@ -182,7 +182,7 @@ def run(self) -> bool:
182182
return True
183183

184184
market_open = is_market_open(
185-
self.__state.asset_type,
185+
self.__state.asset_type.lower(),
186186
datetime.now(ZoneInfo("America/New_York")),
187187
)
188188

@@ -244,7 +244,7 @@ def run(self) -> bool:
244244
return True
245245

246246
market_open = is_market_open(
247-
self.__state.asset_type,
247+
self.__state.asset_type.lower(),
248248
datetime.now(ZoneInfo("America/New_York")),
249249
)
250250

0 commit comments

Comments
 (0)