Skip to content

Commit e1377a5

Browse files
committed
v1.0.4
* Minor fixes
1 parent c3b075e commit e1377a5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,7 @@ Contact us @ https://blockbee.io/contacts/
292292
#### 1.0.3
293293
* Minor fixes
294294
* Signals now use the value_coin
295-
* Removed deprecated fields from the payment model
295+
* Removed deprecated fields from the payment model
296+
297+
#### 1.0.4
298+
* Minor fixes

blockbee/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from distutils.version import StrictVersion
22

3-
VERSION = StrictVersion('1.0.3')
3+
VERSION = StrictVersion('1.0.4')

blockbee/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def total(self):
5151
qs = self.payment_set.all()
5252

5353
if qs.exists():
54-
return qs.aggregate(sum=Sum('value_paid')).get('sum', 0)
54+
return qs.aggregate(sum=Sum('value_paid_coin')).get('sum', 0)
5555

5656
return 0
5757

@@ -60,7 +60,7 @@ def total_pending(self):
6060
qs = self.payment_set.filter(pending=True)
6161

6262
if qs.exists():
63-
return qs.aggregate(sum=Sum('value_paid')).get('sum', 0)
63+
return qs.aggregate(sum=Sum('value_paid_coin')).get('sum', 0)
6464

6565
return 0
6666

@@ -69,7 +69,7 @@ def total_confirmed(self):
6969
qs = self.payment_set.filter(pending=False)
7070

7171
if qs.exists():
72-
return qs.aggregate(sum=Sum('value_paid')).get('sum', 0)
72+
return qs.aggregate(sum=Sum('value_paid_coin')).get('sum', 0)
7373

7474
return 0
7575

0 commit comments

Comments
 (0)