22/05/23 - 23h

master
cherif 2023-05-22 22:27:52 +02:00
parent 4af87856da
commit 2a81ab9ca6
7 changed files with 1120 additions and 22 deletions

View File

@ -1,7 +1,7 @@
<?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="21/05/23 - 10h">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="21/05/23 - 22h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/GlobalVariable.py" beforeDir="false" afterPath="$PROJECT_DIR$/GlobalVariable.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
@ -9,7 +9,6 @@
<change beforePath="$PROJECT_DIR$/data_indexees.csv" beforeDir="false" afterPath="$PROJECT_DIR$/data_indexees.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ela_output_test_file_pandas_2.txt" beforeDir="false" afterPath="$PROJECT_DIR$/ela_output_test_file_pandas_2.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lms_chamilo/mysy_lms.py" beforeDir="false" afterPath="$PROJECT_DIR$/lms_chamilo/mysy_lms.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -227,7 +226,14 @@
<option name="project" value="LOCAL" />
<updated>1684655964597</updated>
</task>
<option name="localTasksCounter" value="24" />
<task id="LOCAL-00024" summary="21/05/23 - 22h">
<created>1684699348108</created>
<option name="number" value="00024" />
<option name="presentableId" value="LOCAL-00024" />
<option name="project" value="LOCAL" />
<updated>1684699348108</updated>
</task>
<option name="localTasksCounter" value="25" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -262,6 +268,7 @@
<MESSAGE value="13/05/23 - 23h" />
<MESSAGE value="15/05/23 - 23h" />
<MESSAGE value="21/05/23 - 10h" />
<option name="LAST_COMMIT_MESSAGE" value="21/05/23 - 10h" />
<MESSAGE value="21/05/23 - 22h" />
<option name="LAST_COMMIT_MESSAGE" value="21/05/23 - 22h" />
</component>
</project>

View File

@ -77,10 +77,10 @@ token_fr_pontuation = []
La taille maximal d'un champs à retourner.
Au dela de 300 caractère, le système rame
'''
MAX_CARACT = 500
MAX_CARACT = 300 # Celui est utilisé pour les affichage courts et tronqués, comme sur la page principale du moteur
MAX_CARACT_DEDUIT = 150
TOKEN_SIZE = 25
MAX_CARACT_DETAIL = 600
MAX_CARACT_DETAIL = 1000 # Celui est utilisé pour les affichage globaux (si le texte est trop long, il va tronquer un peut mais cela permet de cadrer un peu les choses
@ -365,7 +365,8 @@ elif (MYSY_ENV == "REC"):
"""
Variable pour definir les unité de durée acceptées pour une formation
"""
CLASS_DURATION_UNIT = ['heure', 'jour', 'mois', 'annee']
CLASS_DURATION_UNIT = ['heure', 'jour', 'semaine', 'mois', 'annee', 'user_rythme']
# user_rythme : definit les formations ou la durée depend de la progression de l'utilisateur
"""

File diff suppressed because it is too large Load Diff

View File

@ -1668,8 +1668,6 @@ def get_class(diction):
connection_type = diction['connection_type']
'''
Gestion des filters.
'''
@ -3090,26 +3088,26 @@ def get_class_by_metier(diction):
tmp_str = retVal['description']
no_html = mycommon.cleanhtml(retVal['description'])
if (len(no_html) > MYSY_GV.MAX_CARACT_DETAIL):
retVal['description'] = no_html[:MYSY_GV.MAX_CARACT_DETAIL] + " ..."
if (len(no_html) > MYSY_GV.MAX_CARACT):
retVal['description'] = no_html[:MYSY_GV.MAX_CARACT] + " ..."
if ("objectif" in retVal.keys()):
tmp_str = retVal['objectif']
no_html = mycommon.cleanhtml(retVal['objectif'])
if (len(no_html) > MYSY_GV.MAX_CARACT_DETAIL):
retVal['objectif'] = no_html[:MYSY_GV.MAX_CARACT_DETAIL] + " ..."
if (len(no_html) > MYSY_GV.MAX_CARACT):
retVal['objectif'] = no_html[:MYSY_GV.MAX_CARACT] + " ..."
if ("programme" in retVal.keys()):
tmp_str = retVal['programme']
no_html = mycommon.cleanhtml(retVal['programme'])
if (len(no_html) > MYSY_GV.MAX_CARACT_DETAIL):
retVal['programme'] = no_html[:MYSY_GV.MAX_CARACT_DETAIL] + " ..."
if (len(no_html) > MYSY_GV.MAX_CARACT):
retVal['programme'] = no_html[:MYSY_GV.MAX_CARACT] + " ..."
if ("pedagogie" in retVal.keys()):
tmp_str = retVal['pedagogie']
no_html = mycommon.cleanhtml(retVal['pedagogie'])
if (len(no_html) > MYSY_GV.MAX_CARACT_DETAIL):
retVal['pedagogie'] = no_html[:MYSY_GV.MAX_CARACT_DETAIL] + " ..."
if (len(no_html) > MYSY_GV.MAX_CARACT):
retVal['pedagogie'] = no_html[:MYSY_GV.MAX_CARACT] + " ..."
# mycommon.myprint(str(retVal))
user = retVal

View File

@ -1,4 +1,4 @@
,index,mots,occurence,moyenne,id_formation,source_field
0,0,relationnel,1,0.33,MYSY_Demo_001,keyword
0,0,bdd,1,0.33,MYSY_Demo_001,keyword
1,1,sql,1,0.33,MYSY_Demo_001,keyword
2,2,bdd,1,0.33,MYSY_Demo_001,keyword
2,2,relationnel,1,0.33,MYSY_Demo_001,keyword

1 index mots occurence moyenne id_formation source_field
2 0 0 relationnel bdd 1 0.33 MYSY_Demo_001 keyword
3 1 1 sql 1 0.33 MYSY_Demo_001 keyword
4 2 2 bdd relationnel 1 0.33 MYSY_Demo_001 keyword

View File

@ -1,4 +1,4 @@
mots occurence moyenne id_formation source_field
0 relationnel 1 0.33 MYSY_Demo_001 keyword
0 bdd 1 0.33 MYSY_Demo_001 keyword
1 sql 1 0.33 MYSY_Demo_001 keyword
2 bdd 1 0.33 MYSY_Demo_001 keyword
2 relationnel 1 0.33 MYSY_Demo_001 keyword

View File

@ -2930,7 +2930,8 @@ def Create_Class_From_Lms(diction):
new_diction['cpf'] = "0"
new_diction['note'] = "4"
new_diction['price'] = "0"
new_diction['duration_unit'] = "user_rythme"
new_diction['duration'] = "0"
class_internal_url = ""