Show
Ignore:
Timestamp:
01/18/05 20:47:50 (19 years ago)
Author:
jalet
Message:

Big bug fix wrt the datelimit attribute

Files:
1 modified

Legend:

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

    r1999 r2030  
    2222# 
    2323# $Log$ 
     24# Revision 1.64  2005/01/18 19:47:50  jalet 
     25# Big bug fix wrt the datelimit attribute 
     26# 
    2427# Revision 1.63  2005/01/01 08:16:17  jalet 
    2528# Fixed a problem which occured when 'limitby' was unset in the PostgreSQL 
     
    522525    def writeUserPQuotaPagesCounters(self, userpquota, newpagecounter, newlifepagecounter) :     
    523526        """Sets the new page counters permanently for a user print quota.""" 
    524         self.doModify("UPDATE userpquota SET pagecounter=%s,lifepagecounter=%s WHERE id=%s" % (self.doQuote(newpagecounter), self.doQuote(newlifepagecounter), self.doQuote(userpquota.ident))) 
     527        self.doModify("UPDATE userpquota SET pagecounter=%s, lifepagecounter=%s, datelimit=NULL WHERE id=%s" % (self.doQuote(newpagecounter), self.doQuote(newlifepagecounter), self.doQuote(userpquota.ident))) 
    525528        
    526529    def decreaseUserAccountBalance(self, user, amount) :