def __init__(self, path, meta, content):
        self.path = path
        self.filename, _ = os.path.splitext(os.path.basename(path))
        self.meta = meta
        self.content = content
        self.tags = []
        self.date = self.datetime.strftime("%Y-%m-%d")

        filename, _ = os.path.splitext(os.path.basename(path))
        if self.DATE_RE.match(filename[:10]):
            self.meta.setdefault("date", filename[:10])
            self.filename = filename[11:]
        else:
            self.filename = filename

        if "date" in self.meta:
            self.date = self.meta.date
        else:
            self.date = self.datetime.strftime("%Y-%m-%d")
dataset/ETHPy150Open whtsky/Catsup/catsup/models.py/Post.__init__/original