Skip to content

Commit

Permalink
Changed default minimum transaction value
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Nov 29, 2020
1 parent ccd38df commit 8783dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
resources = "res/"
backgroundColor = "#FEEEDA"
foregroundColor = "#212121"
min_trans_difference = 1
min_trans_difference = 0.000000001 # Minimum transaction amount to be saved

import sqlite3

Expand Down Expand Up @@ -641,7 +641,7 @@ def getBalance():
difference = (float(balance) - float(oldbalance))
dif_with_unpaid = (float(balance) - float(oldbalance)) + unpaid_balance
if float(balance) != float(difference):
if dif_with_unpaid >= 1 or dif_with_unpaid < 0:
if dif_with_unpaid >= min_trans_difference or dif_with_unpaid < 0:
now = datetime.datetime.now()
difference = (round(dif_with_unpaid, 12))
with sqlite3.connect(f"{resources}/wallet.db") as con:
Expand Down

0 comments on commit 8783dcf

Please sign in to comment.