Subversion Repositories SmartDukaan

Rev

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

Rev 14820 Rev 14847
Line 143... Line 143...
143
                    closed = closed and newOrder['closed']
143
                    closed = closed and newOrder['closed']
144
                    bulk.find({"orderId":merchantOrder.get("orderId")}).update({"$set":{"closed":closed, "parseError":False}})
144
                    bulk.find({"orderId":merchantOrder.get("orderId")}).update({"$set":{"closed":closed, "parseError":False}})
145
                result = bulk.execute()
145
                result = bulk.execute()
146
                tprint(result)
146
                tprint(result)
147
            except:
147
            except:
148
                tprint("Could not update " + str(merchantOrder['orderId']))
148
                tprint("Could not update " + str(merchantOrder['orderId']) + " For store " + self.getName())
149
                self.db.merchantOrder.update({"orderId":merchantOrder['orderId']}, {"$set":{"parseError":True}})
149
                self.db.merchantOrder.update({"orderId":merchantOrder['orderId']}, {"$set":{"parseError":True}})
150
                traceback.print_exc()
150
                traceback.print_exc()
151
                    
151
                    
152
                
152
                
153
             
153