Changeset 2452 for pykota/trunk/pykota/storages/sql.py
- Timestamp:
- 09/17/05 16:29:43 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r2388 r2452 514 514 self.doModify("UPDATE users SET balance=%s WHERE id=%s" % (self.doQuote(newbalance), self.doQuote(user.ident))) 515 515 516 def writeNewPayment(self, user, amount ) :516 def writeNewPayment(self, user, amount, comment="") : 517 517 """Adds a new payment to the payments history.""" 518 self.doModify("INSERT INTO payments (userid, amount ) VALUES (%s, %s)" % (self.doQuote(user.ident), self.doQuote(amount)))518 self.doModify("INSERT INTO payments (userid, amount, description) VALUES (%s, %s, %s)" % (self.doQuote(user.ident), self.doQuote(amount), self.doQuote(comment))) 519 519 520 520 def writeLastJobSize(self, lastjob, jobsize, jobprice) :