'Returns interval time (in minutes)'

def get_interval(self):

    config = WatcherConfig.query.filter((WatcherConfig.index == self.index)).first()
    if config:
        return config.interval
    return self.interval
