Subversion Repositories SmartDukaan

Rev

Rev 16829 | Rev 16834 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16829 Rev 16831
Line 203... Line 203...
203
    workbook = xlrd.open_workbook(filepath)
203
    workbook = xlrd.open_workbook(filepath)
204
    sheet = workbook.sheet_by_index(0)
204
    sheet = workbook.sheet_by_index(0)
205
    num_rows = sheet.nrows
205
    num_rows = sheet.nrows
206
    for rownum in range(1, num_rows):
206
    for rownum in range(1, num_rows):
207
        try:
207
        try:
208
            orderId, userId, merchantOrderId, subOrderId  = sheet.row_values(rownum)[0:3]
208
            orderId, userId, merchantOrderId, subOrderId  = sheet.row_values(rownum)[0:4]
209
            Mongo.rejectCashback(orderId, subOrderId)
209
            Mongo.rejectCashback(int(orderId), subOrderId)
210
        except:
210
        except:
211
            tprint("Could not reject " + str("orderId " + orderId + ", userId " + userId + ", merchantOrderId " + merchantOrderId + ", subOrderId "+ subOrderId))
-
 
212
            traceback.print_exc()
211
            traceback.print_exc()
213
              
212
              
214
 
213
 
215
class SnapShot():
214
class SnapShot():
216
    def on_get(self, req, resp):
215
    def on_get(self, req, resp):