Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Fix wrong counters parsing in Spanish and some other languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Mishchenko committed Sep 1, 2020
1 parent 28f3338 commit 57ae8c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/counters_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
def parse(device, text):
multiplier = 1
text = text.replace(",", "")
text = text.replace(".", "")
if "K" in text:
text = text.replace("K", "")
multiplier = 1000
Expand Down

0 comments on commit 57ae8c6

Please sign in to comment.