Skip to content

Commit

Permalink
update github action add cron test and edit loan endpoint + update ver
Browse files Browse the repository at this point in the history
  • Loading branch information
thedtvn committed Aug 13, 2024
1 parent 7eab869 commit 9bac79d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
name: Test on Push

on:
push
push:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion mbbank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .wasm_helper import wasm_encrypt
from .capcha_ocr import CapchaProcessing, TesseractOCR

__version__ = '0.1.8'
__version__ = '0.1.9'
2 changes: 1 addition & 1 deletion mbbank/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def getLoanList(self):
Raises:
MBBankError: if api response not ok
"""
data_out = self._req("https://online.mbbank.com.vn/api/retail_web/loan/getList")
data_out = self._req("https://online.mbbank.com.vn/api/retail-web-onlineloanms/loan/getList")
return data_out

def getCardTransactionHistory(self, cardNo: str, from_date: datetime.datetime, to_date: datetime.datetime):
Expand Down
2 changes: 1 addition & 1 deletion mbbank/mbasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async def getLoanList(self):
Raises:
MBBankError: if api response not ok
"""
data_out = await self._req("https://online.mbbank.com.vn/api/retail_web/loan/getList")
data_out = await self._req("https://online.mbbank.com.vn/api/retail-web-onlineloanms/loan/getList")
return data_out

async def getCardTransactionHistory(self, cardNo: str, from_date: datetime.datetime, to_date: datetime.datetime):
Expand Down

0 comments on commit 9bac79d

Please sign in to comment.