Skip to content

Commit

Permalink
fix 100.0 in global
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Dec 30, 2023
1 parent 45b2ecc commit e264b37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion module/cafe_reward.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ def get_cafe_earning_status1(self):
for j in range(0, len(ocr_res['text'])):
if ocr_res['text'][j] == ' ':
continue
temp = temp + ocr_res['text'][j]
if ocr_res['text'][j] == ',':
temp = temp + '.'
else:
temp = temp + ocr_res['text'][j]
temp = temp.lower()
if temp[len(temp) - 1] == "%":
t = float(temp[:len(temp) - 1])
Expand Down

0 comments on commit e264b37

Please sign in to comment.