@classmethod
    def get_by_id(cls, pk):
        d = select_one((cls.__table__, cls.__primary_key__.name) % 'select * from %s where %s=?', pk)
        return cls(**d) if d else None
dataset/ETHPy150Open michaelliao/transwarp/transwarp/db.py/Model.get_by_id/swapped operands of `%`