mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Bid: add charge_amount property.
This commit is contained in:
@@ -354,6 +354,10 @@ class Bid(Sessionized, Base):
|
||||
def is_refund(self):
|
||||
return (self.status == self.STATUS.REFUND)
|
||||
|
||||
@property
|
||||
def charge_amount(self):
|
||||
return self.charge or self.bid
|
||||
|
||||
|
||||
class PromotionWeights(Sessionized, Base):
|
||||
__tablename__ = "promotion_weight"
|
||||
|
||||
Reference in New Issue
Block a user