Validation 13/03/22 - 10h21
parent
b80bc3ab0b
commit
e9009638ea
|
@ -1020,11 +1020,14 @@ def get_partner_class(diction):
|
|||
" filt_external_code = "+str(filt_external_code)+
|
||||
" filt_title = "+str(filt_title))
|
||||
|
||||
val_tmp = 1
|
||||
for retVal in coll_name.find(({"$and": [ {'valide':'1'},{'locked':'0'},
|
||||
{'partner_owner_recid':user_recid} ,filt_external_code, filt_title ]})):
|
||||
mycommon.myprint(str(retVal))
|
||||
user = retVal
|
||||
user['id'] = str(val_tmp)
|
||||
RetObject.append(JSONEncoder().encode(user))
|
||||
val_tmp = val_tmp + 1
|
||||
|
||||
return True, RetObject
|
||||
|
||||
|
|
|
@ -175,12 +175,15 @@ def get_all_class(diction):
|
|||
|
||||
coll_name = dbname['myclass']
|
||||
|
||||
val_tmp = 1
|
||||
insertObject = []
|
||||
for x in coll_name.find({'valide':'1', 'locked':'0'}, {"_id": 0, "indexed": 0, "indexed_desc": 0, "indexed_obj": 0, "indexed_title": 0,
|
||||
"valide": 0, "locked": 0, "partner_owner_recid": 0, }):
|
||||
mycommon.myprint(x)
|
||||
user = x
|
||||
user['id'] = str(val_tmp)
|
||||
insertObject.append(JSONEncoder().encode(user))
|
||||
val_tmp = val_tmp + 1
|
||||
|
||||
#mycommon.myprint(" insertObject = ", insertObject)
|
||||
return True, insertObject
|
||||
|
|
Loading…
Reference in New Issue