Skip to content

Commit

Permalink
beeline web accumulators
Browse files Browse the repository at this point in the history
  • Loading branch information
artyl committed Jun 8, 2023
1 parent d032b00 commit 21f172a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/beeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def data_collector(self):
acc2_list = accumulators2_all[-1].get('accumulators', {}).get('items', []) # Из последнего подходящего списка берем список items
acc2_dict = {el.get('unit'): el.get('rest', 0) for el in acc2_list}
self.result['Internet'] = self.result.get('Internet', 0) + acc2_dict.get('KBYTE', 0)
self.result['Min'] = self.result.get('Internet', 0) + acc2_dict.get('SECONDS', 0)
self.result['SMS'] = self.result.get('Internet', 0) + acc2_dict.get('SMS', 0)
self.result['Min'] = self.result.get('Min', 0) + acc2_dict.get('SECONDS', 0)
self.result['SMS'] = self.result.get('SMS', 0) + acc2_dict.get('SMS', 0)
except Exception:
exception_text = f'Ошибка при получении accumulators2 {store.exception_text()}'
logging.error(exception_text)
Expand Down

0 comments on commit 21f172a

Please sign in to comment.