@classmethod
def _get(cls, **kwargs):
many = kwargs.get("many", False)
if "many" in kwargs.keys():
del kwargs["many"]
for key in kwargs.keys():
if key not in cls._cols: # FIXME: TypeError: argument of type 'method' is not iterable
raise AttributeError(f"Model {cls.__tablename__} don't have attribute {key}")
我不清楚这个cls是什么,不知道是不是上面的那个[c.key for c in cls.__table__.columns]里面的问题,麻烦韩哥看看,我这先给注释了可以创建项目
@linhandev 韩哥在
pplabel\api\model\base.py
中,创建project的时候46行报错,如下我不清楚这个cls是什么,不知道是不是上面的那个
[c.key for c in cls.__table__.columns]
里面的问题,麻烦韩哥看看,我这先给注释了可以创建项目