@classmethod
    def has_cover(cls, card):
        q = cls.query
        q = q.filter_by(cover=card)
        return q.count() == 1
dataset/ETHPy150Open Net-ng/kansha/kansha/card_addons/gallery/models.py/DataAsset.has_cover/original