Show
Ignore:
Timestamp:
06/06/04 00:03:50 (20 years ago)
Author:
jalet
Message:

Payments history is now stored in database

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/sql.py

    r1520 r1522  
    2222# 
    2323# $Log$ 
     24# Revision 1.41  2004/06/05 22:03:50  jalet 
     25# Payments history is now stored in database 
     26# 
    2427# Revision 1.40  2004/06/03 23:14:11  jalet 
    2528# Now stores the job's size in bytes in the database. 
     
    342345            self.doModify("UPDATE users SET balance=%s WHERE id=%s" % (self.doQuote(newbalance), self.doQuote(user.ident))) 
    343346             
     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         
    344351    def writeLastJobSize(self, lastjob, jobsize, jobprice) :         
    345352        """Sets the last job's size permanently."""