Skip to content

Commit 806fa78

Browse files
committed
fixed compute
1 parent c0ba519 commit 806fa78

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gbmapi/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from enum import StrEnum
22
from urllib.parse import quote
33

4-
from .base import GBMBase
4+
from .base import GBMApiBase
55

66
GBM_APP = 'https://app.gbm.com'
77

@@ -16,7 +16,7 @@ class CommodityType(StrEnum):
1616
MATERIA_PRIMA = "f3851585-1456-4fcd-a6cb-23ef31dd351b"
1717

1818

19-
class GBMApi(GBMBase):
19+
class GBMApi(GBMApiBase):
2020
API_URL = "https://api.gbm.com"
2121
ORIGIN = "https://homebroker.gbm.com"
2222

gbmapi/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def access_token(self):
5252

5353
def identity_token(self):
5454
cred = self.check_credentials()
55-
return cred.get('idToken') or cred['identityToken']
55+
return cred['identityToken']
5656

5757
def _request(self, method, path, headers=None, json=None, check_success=True):
5858
resp = requests.request(

gbmapi/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .utils import STANDARD_HEADERS
66

77

8-
class GBMBase:
8+
class GBMApiBase:
99
API_URL = None # "https://api.gbm.com"
1010
ORIGIN = None # "https://homebroker.gbm.com"
1111

gbmapi/homebroker_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from time import time
55

66
from . import GBMAuth
7-
from .base import GBMBase
7+
from .base import GBMApiBase
88
from .utils import format_date, format_date_end
99

1010

@@ -34,7 +34,7 @@ class ProcessStatus(IntEnum):
3434
APP_ID = 16
3535

3636

37-
class GBMHomebrokerApi(GBMBase):
37+
class GBMHomebrokerApi(GBMApiBase):
3838
API_URL = "https://homebroker-api.gbm.com"
3939
ORIGIN = "https://homebroker.gbm.com"
4040

0 commit comments

Comments
 (0)