Subversion Repositories SmartDukaan

Rev

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

Rev 19096 Rev 20596
Line 576... Line 576...
576
        if "Saved Successfully" in resp:
576
        if "Saved Successfully" in resp:
577
            rc.pushedAt = datetime.datetime.now()
577
            rc.pushedAt = datetime.datetime.now()
578
            rc.pushedToOcr = True
578
            rc.pushedToOcr = True
579
            session.commit()
579
            session.commit()
580
        elif "Error in Saving Data" in resp:
580
        elif "Error in Saving Data" in resp:
581
            mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing recharge collection to OCR", resp, [])
581
            mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["amit.gupta@shop2020.in", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing recharge collection to OCR", resp, [])
582
        else: 
582
        else: 
583
            mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing recharge collection to OCR", resp, [])
583
            mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["amit.gupta@shop2020.in", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing recharge collection to OCR", resp, [])
584
        
584
        
585
 
585
 
586
 
586
 
587
def topup_company_wallet(companyId, amount):
587
def topup_company_wallet(companyId, amount):
588
    wallet = WalletForCompany.query.filter(WalletForCompany.id == companyId).with_lockmode("update").one()
588
    wallet = WalletForCompany.query.filter(WalletForCompany.id == companyId).with_lockmode("update").one()