Subversion Repositories SmartDukaan

Rev

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

Rev 7457 Rev 7505
Line 50... Line 50...
50
        if ( diffMinutes > checkInterval):
50
        if ( diffMinutes > checkInterval):
51
            print "Diffcheck"
51
            print "Diffcheck"
52
            minutes=diffMinutes%60
52
            minutes=diffMinutes%60
53
            hours=int(diffMinutes/60)
53
            hours=int(diffMinutes/60)
54
            checkHours=int(checkInterval/60)
54
            checkHours=int(checkInterval/60)
-
 
55
            checkMinutes = int(checkInterval%60)
55
            mailText = "Warehouse "+warehouseName+" Id = "+str(warehouseId)+" was last checked "+str(hours)+" hours and "+str(minutes)+" minutes ago while its interval is "+str(checkHours)+" hours"+"\n\n"
56
            mailText = "Warehouse "+warehouseName+" Id = "+str(warehouseId)+" was last checked "+str(hours)+" hours and "+str(minutes)+" minutes ago while its interval is "+str(checkHours)+" hours"+" and "+str(checkMinutes)+" minutes"+"\n\n"
56
            print mailText
57
            print mailText
57
            MESSAGE.append(mailText)
58
            MESSAGE.append(mailText)
58
            print "checking timediff"
59
            print "checking timediff"
59
    
60
    
60
    except:
61
    except: