Subversion Repositories SmartDukaan

Rev

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

Rev 6313 Rev 6314
Line 3546... Line 3546...
3546
        return "Oops! There seems to be a problem. Please try after some time."
3546
        return "Oops! There seems to be a problem. Please try after some time."
3547
    circle = TelecomCircle.query.filter_by(code = circleCode).first()
3547
    circle = TelecomCircle.query.filter_by(code = circleCode).first()
3548
    if circle:
3548
    if circle:
3549
        if not ServiceAvailability.query.filter_by(circleId = circle.id).filter_by(operatorId = userSelectedProviderId).first().isServiceAvailable :
3549
        if not ServiceAvailability.query.filter_by(circleId = circle.id).filter_by(operatorId = userSelectedProviderId).first().isServiceAvailable :
3550
            if deviceNumberInfo.operatorName :
3550
            if deviceNumberInfo.operatorName :
-
 
3551
                if circle.id == 8:
-
 
3552
                    return "We currently do not provide this service in J&K. We regret the inconvenience."
-
 
3553
                else :
3551
                return deviceNumberInfo.operatorName + " is down in " + circle.name + " currently. Please try later." 
3554
                    return "We are facing technical issues with " + deviceNumberInfo.operatorName + " in " + circle.name + " currently. Please try later." 
3552
            else
3555
            else
3553
                return "This operator is down in " + circle.name + " currently. Please try later." 
3556
                return "We are facing technical issues with this operator in " + circle.name + " currently. Please try later." 
3554
    allcounts, successcounts  = get_previous_transactions(rechargeType, deviceNumber)
3557
    allcounts, successcounts  = get_previous_transactions(rechargeType, deviceNumber)
3555
    if allcounts >= 15 or successcounts >= 5:
3558
    if allcounts >= 15 or successcounts >= 5:
3556
        return "You have exceeded daily limit for this mobile number."
3559
        return "You have exceeded daily limit for this mobile number."
3557
    return "SUCCESS"
3560
    return "SUCCESS"
3558
    
3561