Skip to content

Commit a8a914f

Browse files
committed
Add sdk.lease
1 parent 084c906 commit a8a914f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/sentinel_sdk/modules/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ def QueryNodeStatus(self, node: node_pb2.Node, is_in_thread: bool = False) -> st
7070
for prices in node.gigabyte_prices:
7171
gb_price = gb_price + prices.quote_value + prices.denom + ','
7272
else:
73-
gb_price = "0.0udvpn"
73+
gb_price = "0udvpn"
7474
if node.hourly_prices:
7575
for prices in node.hourly_prices:
7676
hr_price = hr_price + prices.quote_value + prices.denom + ','
7777
else:
78-
hr_price = "0.0udvpn"
78+
hr_price = "0udvpn"
7979

8080
gb_price = gb_price.rstrip(',')
8181
hr_price = hr_price.rstrip(',')

src/sentinel_sdk/sdk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from sentinel_sdk.modules.provider import ProviderModule
1212
from sentinel_sdk.modules.session import SessionModule
1313
from sentinel_sdk.modules.subscription import SubscriptionModule
14+
from sentinel_sdk.modules.lease import LeaseModule
1415

1516
from mospy import Account
1617
from mospy.clients import GRPCClient
@@ -138,6 +139,7 @@ def __load_modules(self):
138139
self.nodes = NodeModule(self._channel, 10, self._account, self._client)
139140
self.deposits = DepositModule(self._channel)
140141
self.plans = PlanModule(self._channel, self._account, self._provider_account, self._client)
142+
self.lease = LeaseModule(self._channel, self._account, self._provider_account, self._client)
141143
self.providers = ProviderModule(self._channel, self._account, self._client)
142144
self.sessions = SessionModule(self._channel, self._account, self._client)
143145
self.subscriptions = SubscriptionModule(self._channel, self._account, self._client)

0 commit comments

Comments
 (0)