Skip to content

Commit

Permalink
fix mgts negative balance
Browse files Browse the repository at this point in the history
  • Loading branch information
artyl committed Jul 17, 2022
1 parent 19488fc commit 51f437b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelist.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,6 @@ FIX: МТС снова показывает свое истинное отнош

## mbplugin v1.00.31 (15.07.22) Fix mts new lk, attempt 2
FIX: МТС еще одна попытка починить личный кабинет, пока не ясно где информация по общему пакету

## mbplugin v1.00.32 (??.07.22) Fix mts new lk, attempt 2
FIX: Мгтс отрицательный баланс
2 changes: 1 addition & 1 deletion plugin/mgts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class browserengine(browsercontroller.BrowserController):
def data_collector(self):
self.do_logon(url=login_url, user_selectors=user_selectors)
self.sleep(3*self.force)
balance = self.page_evaluate("document.querySelector('.account-info_balance_value').innerText.replace(/[^0-9,\.]/g,'').replace(',','.')")
balance = self.page_evaluate("document.querySelector('.account-info_balance_value').innerText.replace(/[^0-9,\.-]/g,'').replace(',','.')")
self.result['Balance'] = float(balance)
self.responses[f'GET URL:{self.page.url}$'] = self.page.content() # т.к. мы парсим страницу, то для лога интересно ее содержимое
try:
Expand Down

0 comments on commit 51f437b

Please sign in to comment.