From 5f8108760917c949402ea8dadc4ac7f8f5aa0665 Mon Sep 17 00:00:00 2001 From: Ayaz Abbas Date: Tue, 28 May 2024 11:21:48 +0100 Subject: [PATCH] lint --- pyth_observer/event.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyth_observer/event.py b/pyth_observer/event.py index 1fb9a9a..3116a5d 100644 --- a/pyth_observer/event.py +++ b/pyth_observer/event.py @@ -170,8 +170,14 @@ async def send(self): state = self.check.state() if isinstance(state, PublisherState): alert_identifier += f"-{state.publisher_name}" - symbol = self.check.state().symbol.replace(".", "-").replace("/", "-").lower() - cluster = "solana-mainnet-beta" if self.context.network == "mainnet" else self.context.network + symbol = ( + self.check.state().symbol.replace(".", "-").replace("/", "-").lower() + ) + cluster = ( + "solana-mainnet-beta" + if self.context["network"] == "mainnet" + else self.context["network"] + ) publisher_key = state.public_key.key summary += f"https://pyth.network/metrics?price-feed={symbol}&cluster={cluster}&publisher={publisher_key}\n"