我用的是炼金术和金字塔。我有这样一个url:example.com/userprofiles/{some\u name}
在相应的视图代码中有以下语句:
name = request.matchdict['some_name']
collection = session.query(UserAccount).filter_by(username = name)\
.order_by(asc(UserAccount.username)).limit(10)
…由于(username=name)条件的计算不正确,因此不返回任何内容。在postgresql中,username列的排序规则设置为pg\u catalog.“default”。我需要用什么格式来转换要测试此列的字符串,以便正确计算
目前没有回答
相关问题 更多 >
编程相关推荐