15/04/22 - 15h30

master
ChérifBALDE 2022-04-15 15:40:37 +02:00 committed by cherif
parent 699bf5f3f9
commit 5f46a92ee8
2 changed files with 65638 additions and 7 deletions

File diff suppressed because it is too large Load Diff

View File

@ -867,23 +867,22 @@ def get_class(diction):
filt_external_code = {}
if ("external_code" in diction.keys()):
filt_external_code = {'external_code':{'$regex':str(diction['external_code'])}}
external_code = str(diction['external_code'])
filt_title = {}
if ("title" in diction.keys()):
filt_title = {'title': {'$regex': str(diction['title'])}}
print(" ATTTTENNTION : GESTION DU CAS OU LA PERSONNE QUI CHERCHE LE COURS EST UN UTILISATEUR : PB avec : partner_owner_recid ")
print(" #### avant requete get partner_owner_recid ="+str(user_recid)+
" filt_external_code = "+str(filt_external_code)+
" filt_title = "+str(filt_title))
for retVal in coll_name.find(({"$and": [ {'valide':'1'},{'locked':'0'},
filt_external_code, filt_title ]})):
'''
Statistique : Une fois qu'une personne veut acceder aux detail d'une formation
alors on ajout aux statut le faite que la formation a été ouverte/
'''
for retVal in coll_name.find({'valide':'1','locked':'0','external_code':external_code},
{"_id": 0, "indexed": 0, "indexed_desc": 0, "indexed_obj": 0, "indexed_title": 0,
"valide": 0, "locked": 0, "partner_owner_recid": 0, }
):
my_recid = {}
my_recid['user_rec_id'] = str(user_recid)
mydict_combined = {**diction, **retVal, **my_recid}