fixbug
This commit is contained in:
parent
abe96d01a9
commit
d47ae51269
@ -259,12 +259,12 @@ class CRUD(object):
|
|||||||
if NS.get('sort',None) is None:
|
if NS.get('sort',None) is None:
|
||||||
NS['sort'] = p[0]['field_name']
|
NS['sort'] = p[0]['field_name']
|
||||||
|
|
||||||
data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeRetieve',NS)
|
data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeRetrieve',NS)
|
||||||
if NS.get('page'):
|
if NS.get('page'):
|
||||||
data = await pagingdata(self.dbname,data)
|
data = await pagingdata(self.dbname,data)
|
||||||
else:
|
else:
|
||||||
data = await retrieve(self.dbname,data)
|
data = await retrieve(self.dbname,data)
|
||||||
data = self.oa.execute(self.dbname+'_'+self.tablename,'afterRetieve',data)
|
data = self.oa.execute(self.dbname+'_'+self.tablename,'afterRetrieve',data)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
async def U(self,data):
|
async def U(self,data):
|
||||||
|
Loading…
Reference in New Issue
Block a user