06/05/22 - 10h30

master
ChérifBALDE 2022-05-06 11:17:56 +02:00 committed by cherif
parent c96a675925
commit 2bb0969d20
2 changed files with 7 additions and 1 deletions

View File

@ -669,7 +669,7 @@ def get_article_avis_alaune(diction):
for x in coll_name.find({'valide': '1', 'locked': '0', 'isalaune': '1'},
{"_id": 0, "indexed": 0, "indexed_desc": 0, "indexed_obj": 0, "isalaune": 0,
"valide": 0, "locked": 0, }).sort(
[("date_avis", pymongo.ASCENDING), ("title_formation", pymongo.ASCENDING)]):
[ ("note", pymongo.DESCENDING), ("date_avis", pymongo.DESCENDING),]):
val = x['qualite']
if (len(x['qualite']) > MYSY_GV.MAX_CARACT_DEDUIT):

View File

@ -105,6 +105,12 @@ def add_user_message(diction):
if diction['recever_mail']:
new_diction['recever_mail'] = diction['recever_mail']
if ("recever_tel" in diction.keys()):
if diction['recever_tel']:
new_diction['recever_tel'] = diction['recever_tel']
if ("object" in diction.keys()):
if diction['object']:
new_diction['object'] = diction['object']