Changeset 2062


Ignore:
Timestamp:
26 Jul 2007, 20:58:59 (17 years ago)
Author:
joachim
Message:

fix commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/ti_167_resolve.py

    r2061 r2062  
    5050count = 0
    5151no_cost = 0
     52commit_after = 100
    5253for payment in payments:
    5354    if payment.Title.find('n/a') > -1:
     
    6566            logger.info("Prefix %s (%s) not found" % (prefix_batch,payment_doc.order_id))
    6667            no_cost +=1
    67     if count and not count % 100:
     68    if count and not count % commit_after:
    6869        context.waeup_tool.doCommit()
    69         logger.info("Committing %s transactions, total %s" % (commit_count,count))
     70        logger.info("Committing %s transactions, total %s" % (commit_after,count))
    7071logger.info("updated %d payment amounts, %d costs not found" % (count,no_cost))
    7172
Note: See TracChangeset for help on using the changeset viewer.