def insert(self):
        self.pre_insert and self.pre_insert()
        fields = []
        params = []
        args = []
        for k, v in self.__mappings__.iteritems():
            if v.insertable:
                fields.append(v.name)
                params.append('?')
                arg = getattr(self, k, None)
                if arg is None:
                    arg = v.default
                    setattr(self, k, arg)
                args.append(arg)
        _update((self.__table__, ','.join(fields), ','.join(params)) % 'insert into %s (%s) values (%s)', args)
        return self
dataset/ETHPy150Open michaelliao/transwarp/transwarp/db.py/Model.insert/swapped operands of `%`