def scalar(self):
        row = self.first()
        if row is not None:
            return row[0]
        else:
            return None
Fetch the first column of the first row, and close the result set.
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/engine/result.py/ResultProxy.scalar