Changeset 1522 for pykota/trunk/pykota/storages/sql.py
- Timestamp:
- 06/06/04 00:03:50 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r1520 r1522 22 22 # 23 23 # $Log$ 24 # Revision 1.41 2004/06/05 22:03:50 jalet 25 # Payments history is now stored in database 26 # 24 27 # Revision 1.40 2004/06/03 23:14:11 jalet 25 28 # Now stores the job's size in bytes in the database. … … 342 345 self.doModify("UPDATE users SET balance=%s WHERE id=%s" % (self.doQuote(newbalance), self.doQuote(user.ident))) 343 346 347 def writeNewPayment(self, user, amount) : 348 """Adds a new payment to the payments history.""" 349 self.doModify("INSERT INTO payments (userid, amount) VALUES (%s, %s)" % (self.doQuote(user.ident), self.doQuote(amount))) 350 344 351 def writeLastJobSize(self, lastjob, jobsize, jobprice) : 345 352 """Sets the last job's size permanently."""