Changeset 2756

Show
Ignore:
Timestamp:
11/07/07 16:30:38 (1 year ago)
Author:
coling
Message:

Allow the changes to begin... I must have tweaked this manually before...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • clientsplugin/0.11/cron/send-client-email

    r2729 r2756  
    204204          # Don't clobber clients with historical updates 
    205205          if not lastupdate: 
    206               lastupdate = now 
     206              # Update the date field and forget about this run. 
     207              sql = ("UPDATE client SET %s_lastupdate" % field) + \ 
     208                     "=%s WHERE name=%s" 
     209              cursor2 = db.cursor() 
     210              cursor2.execute(sql, (now, name)) 
     211              continue 
    207212           
    208213          emails = [] 
     
    323328            xml.write('</changes>') 
    324329           
     330          xml.write('</clientsplugin>') 
     331 
     332          #if options.debug: 
     333          #  print xml.getvalue() 
     334 
    325335          if not have_data: 
    326336            continue 
    327           xml.write('</clientsplugin>') 
    328337           
    329338          doc = libxml2.parseDoc(xml.getvalue())