Skip to content

Commit

Permalink
Minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtoLabs committed Aug 9, 2018
1 parent 9dd03e7 commit fe146da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions steemax/sec.py
Expand Up @@ -21,10 +21,12 @@ def filter_account (string):
return string


def filter_number (string):
def filter_number (string, limit=100):
string = re.sub(r'[^0-9\.]',
'', str(string))
string = string[0:6]
if float(string) < 0.01:
if float(string) < 0.001:
string = "1"
if float(string) > limit:
string = limit
return string

0 comments on commit fe146da

Please sign in to comment.