2d3/05/2025 - 12h

Signed-off-by: cherif <cherif.balde@yahoo.fr>
master
cherif 2025-05-24 14:43:53 +02:00
parent 80ddcd2a4d
commit 7eaed090a7
7 changed files with 4987 additions and 25 deletions

View File

@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="20/05/2025 - 21dhu">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="23/05/2025 - 12h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Ela_Spacy.py" beforeDir="false" afterPath="$PROJECT_DIR$/Ela_Spacy.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Job_Cron_Common.py" beforeDir="false" afterPath="$PROJECT_DIR$/Job_Cron_Common.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jury_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/jury_mgt.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ela_index_bdd_classes.py" beforeDir="false" afterPath="$PROJECT_DIR$/ela_index_bdd_classes.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/wrapper.py" beforeDir="false" afterPath="$PROJECT_DIR$/wrapper.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -82,13 +85,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00420" summary="25/12/2024 - 14h">
<created>1735132675184</created>
<option name="number" value="00420" />
<option name="presentableId" value="LOCAL-00420" />
<option name="project" value="LOCAL" />
<updated>1735132675184</updated>
</task>
<task id="LOCAL-00421" summary="25/12/2024 - 22h30">
<created>1735161926240</created>
<option name="number" value="00421" />
@ -425,7 +421,14 @@
<option name="project" value="LOCAL" />
<updated>1747928501759</updated>
</task>
<option name="localTasksCounter" value="469" />
<task id="LOCAL-00469" summary="23/05/2025 - 12h">
<created>1747994630228</created>
<option name="number" value="00469" />
<option name="presentableId" value="LOCAL-00469" />
<option name="project" value="LOCAL" />
<updated>1747994630229</updated>
</task>
<option name="localTasksCounter" value="470" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -467,7 +470,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="27/02/2025 - 21h" />
<MESSAGE value="04/03/2025 - 21h" />
<MESSAGE value="05/03/2025 - 18h" />
<MESSAGE value="10/03/2025 - 13h" />
@ -492,6 +494,7 @@
<MESSAGE value="20/05/2025 - 21h" />
<MESSAGE value="20/05/2025 - 21hu" />
<MESSAGE value="20/05/2025 - 21dhu" />
<option name="LAST_COMMIT_MESSAGE" value="20/05/2025 - 21dhu" />
<MESSAGE value="23/05/2025 - 12h" />
<option name="LAST_COMMIT_MESSAGE" value="23/05/2025 - 12h" />
</component>
</project>

View File

@ -375,7 +375,7 @@ Aussi, on fait le choix de liberé de ne pas stémiser certain mots'''
def Ela_stemmize_search(tab_tokens):
try:
tab_ret_val = []
#print(" VERIFICATION SI LE MOT DOIT ETRE STEMISE - Ela_stemmize_search- : " + str(tab_tokens))
print(" VERIFICATION SI LE MOT DOIT ETRE STEMISE - Ela_stemmize_search- : " + str(tab_tokens))
for mot in tab_tokens:
if (mycommon.Word_Not_Stemmize(str(mot))):
tab_ret_val.append(unidecode(mot))
@ -383,7 +383,7 @@ def Ela_stemmize_search(tab_tokens):
'''
On fait la correction orthographe avant
'''
#print("AVANT CORRECTION ORTHOGRAHIQUE ="+str(mot)+" ==> APRES = "+unidecode(str(MYSY_GV.spell.correction(mot))))
print("AVANT CORRECTION ORTHOGRAHIQUE ="+str(mot)+" ==> APRES = "+unidecode(str(MYSY_GV.spell.correction(mot))))
corrected_str = str(MYSY_GV.spell.correction(mot))
@ -405,7 +405,7 @@ def Ela_stemmize_search(tab_tokens):
tab_ret_val.append( unidecode (str(MYSY_GV.stemmer.stem(corrected_str))))
'''
#print(" STMISATION TAB = "+str(tab_ret_val))
print(" STMISATION TAB = "+str(tab_ret_val))
return True, tab_ret_val

View File

@ -2712,9 +2712,7 @@ def Cron_Qualiopi_Automatic_Traitement_Notification(diction):
toaddrs = ",".join(tab_destination_mail)
dest_email = toaddrs
print(" ### toaddrs 01010222 = ", dest_email)
#print(" ### toaddrs 01010222 = ", dest_email)
msg['to'] = dest_email
val = smtpserver.send_message(msg)

File diff suppressed because it is too large Load Diff

View File

@ -810,6 +810,14 @@ def ela_recherche_tokens(sentence):
print(" VERIF APRES STEMISATION AA: " + str(tab_tokens4))
"""
24/05/2025 pr test on va annuler la Ela_stemmize_search
"""
tab_tokens4 = tab_tokens3
"""
end test : ca l'air de fonctionner à retester bien
"""
tab_tokens4.sort()
'''

View File

@ -205,6 +205,8 @@ def Upload_Save_IMG_File(file=None, Folder=None):
Global_file_name = str(Folder) + str(file.filename)
print(" ### Global_file_name == ", Global_file_name)
return True, Global_file_name
except Exception as e :
@ -1941,7 +1943,7 @@ def recordClassImage(file=None, Folder=None, diction=None):
return False, "Impossible d'inserer l'image de la formation "
# " Lecture du fichier "
#print(" Lecture du fichier : " + saved_file + ". le token est :" + str(mytoken))
print(" Lecture du fichier : " + saved_file + ". le token est :" + str(mytoken))
nb_line = 0
coll_name = MYSY_GV.dbname['image_ch']
@ -2440,7 +2442,6 @@ def getRecodedClassImage_no_token(diction=None):
coll_name = MYSY_GV.dbname['image_ch']
RetObject = []

View File

@ -252,7 +252,7 @@ def get_all_class(diction):
]}
},
{'$project': { 'indexed': 0, 'indexed_desc': 0, 'indexed_obj': 0, "indexed_title": 0,
"valide": 0, "locked": 0}},
"valide": 0, "locked": 0, }},
{'$lookup':
{
'from': 'business_prices',
@ -1023,7 +1023,7 @@ def recherche_text_simple(diction):
pipe = [
{ '$match': {'external_code': {"$in": tab_training}, 'published':'1'} },
{ '$project': { '_id': 0, 'indexed': 0, 'indexed_desc': 0, 'indexed_obj': 0, "indexed_title": 0, "valide": 0, "locked": 0} },
{ '$project': { 'indexed': 0, 'indexed_desc': 0, 'indexed_obj': 0, "indexed_title": 0, "valide": 0, "locked": 0} },
{ '$lookup':
{
'from': 'business_prices',
@ -1080,7 +1080,8 @@ def recherche_text_simple(diction):
mydict_combined['type_view'] = "summary"
#print( "mydict_combined YYYYYYYYY = "+str(mydict_combined))
if ("_id" in mydict_combined.keys()):
if("_id" in mydict_combined.keys()):
#print(" ### mydict_combined[_id] = ", str(mydict_combined['_id']))
mydict_combined['class_id'] = mydict_combined.pop('_id')
@ -1102,7 +1103,9 @@ def recherche_text_simple(diction):
x['description'] = no_html[:MYSY_GV.MAX_CARACT] + " ..."
else:
x['description'] = no_html
insertObject.append(JSONEncoder().encode(user))
#print(" ### user = ", user)
insertObject.append(mycommon.JSONEncoder().encode(user))
'''
/!\ Important : Recuperation des elements de la recherche etendue