Changeset 2063 for WAeUP_SRP


Ignore:
Timestamp:
27 Jul 2007, 06:55:39 (17 years ago)
Author:
joachim
Message:

set cost in pin table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/ScratchCards.py

    r1571 r2063  
    117117                ri = r.randint(1000000000,9999999999)
    118118                pin = "%s%d%d" % (prefix,b_no,ri)
    119             pins.addRecord(pin=pin,serial=i,student="",prefix_batch="%s%d" % (prefix, b_no))
     119            pins.addRecord(pin=pin,
     120                           serial=i,
     121                           student="",
     122                           cost = cost,
     123                           prefix_batch="%s%d" % (prefix, b_no))
    120124            generated.append('"%(i)d","%(prefix)s-%(b_no)d-%(ri)d"' % vars())
    121125        print '\n'.join(generated)
Note: See TracChangeset for help on using the changeset viewer.