@classmethod
    def _from_thing(cls, thing, value):
        assert ("id", "slug_lower") in thing
        return cls.db.one("""

            SELECT teams.*::teams
              FROM teams
             WHERE {}=%s

        """.format(thing), (value,))
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/models/team.py/Team._from_thing/swapped operands of `in`