def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def every_day(job, loop=None):
    return every(job, timedelta=timedelta(days=1), loop=loop)