def is_deletation_time(self, channel): info = self.conn.channelinfo(cid=channel['cid'])[0] if int(info['seconds_empty']) > self.deletation_time: logging.debug('Channel: ' + channel['channel_name'] + ' is going to be removed, as was not used for: ' + str(from_seconds_to_days(info['seconds_empty'])) + ' days') return 1
def is_quarantine_time(self, channel): info = self.conn.channelinfo(cid=channel['cid'])[0] if int(info['seconds_empty']) > self.qtime or int( info['seconds_empty']) < 0: logging.debug('Channel: ' + channel['channel_name'] + ' was not used in past: ' + str(from_seconds_to_days(info['seconds_empty'])) + ' days') return 1
def is_quarantine_time(self, channel): info = self.conn.channelinfo(cid=channel['cid'])[0] if int(info['seconds_empty']) > self.qtime or int(info['seconds_empty']) < 0: logging.debug('Channel: '+ channel['channel_name']+ ' was not used in past: '+ str(from_seconds_to_days(info['seconds_empty'])) + ' days') return 1
def is_deletation_time(self, channel): info = self.conn.channelinfo(cid=channel['cid'])[0] if int(info['seconds_empty']) > self.deletation_time: logging.debug('Channel: '+ channel['channel_name']+ ' is going to be removed, as was not used for: '+ str(from_seconds_to_days(info['seconds_empty'])) + ' days') return 1