def scalar(self, as_tuple=False, convert=False):
        if convert:
            row = self.tuples().first()
        else:
            row = self._execute().fetchone()
        if row or not as_tuple:
            return row[0]
        else:
            return row
dataset/ETHPy150Open coleifer/peewee/peewee.py/Query.scalar/operator `and` -> `or`