15/08/23 - 20h

master
cherif 2023-08-15 20:05:06 +02:00
parent fafd1009d3
commit 5f27d89f40
3 changed files with 1551 additions and 13 deletions

View File

@ -1,11 +1,10 @@
<?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="14/08/23 - 16h30">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="15/08/23 -14h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/email_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/email_mgt.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -69,13 +68,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00020" summary="13/05/23 - 23h">
<created>1684015246929</created>
<option name="number" value="00020" />
<option name="presentableId" value="LOCAL-00020" />
<option name="project" value="LOCAL" />
<updated>1684015246929</updated>
</task>
<task id="LOCAL-00021" summary="15/05/23 - 23h">
<created>1684159880527</created>
<option name="number" value="00021" />
@ -412,7 +404,14 @@
<option name="project" value="LOCAL" />
<updated>1692023863799</updated>
</task>
<option name="localTasksCounter" value="69" />
<task id="LOCAL-00069" summary="15/08/23 -14h">
<created>1692102586761</created>
<option name="number" value="00069" />
<option name="presentableId" value="LOCAL-00069" />
<option name="project" value="LOCAL" />
<updated>1692102586763</updated>
</task>
<option name="localTasksCounter" value="70" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -427,7 +426,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="10/07/23 - 22h" />
<MESSAGE value="12/07/23 - 21h" />
<MESSAGE value="16/07/23 - 21h" />
<MESSAGE value="16/07/23 - 22h" />
@ -452,6 +450,7 @@
<MESSAGE value="13/08/23 - 14h" />
<MESSAGE value="13/08/23 - 21h30" />
<MESSAGE value="14/08/23 - 16h30" />
<option name="LAST_COMMIT_MESSAGE" value="14/08/23 - 16h30" />
<MESSAGE value="15/08/23 -14h" />
<option name="LAST_COMMIT_MESSAGE" value="15/08/23 -14h" />
</component>
</project>

File diff suppressed because it is too large Load Diff

View File

@ -794,6 +794,8 @@ def GetAllValideSessionPartner_List_filter_like(diction):
cpt = cpt + 1
val['class_internal_url'] = retVal['class_internal_url']
val['code_session'] = retVal['code_session']
val['session_etape'] = retVal['session_etape']
val['session_status'] = retVal['session_status']
val['date_debut'] = retVal['date_debut'][0:10]
val['date_fin'] = retVal['date_fin'][0:10]
val['date_debut_inscription'] = retVal['date_debut_inscription'][0:10]
@ -801,15 +803,62 @@ def GetAllValideSessionPartner_List_filter_like(diction):
val['distantiel'] = retVal['distantiel']
val['formateur'] = retVal['formateur']
val['nb_participant'] = retVal['nb_participant']
nb_participant = "0"
if ("nb_participant" in retVal.keys()):
nb_participant = retVal['nb_participant']
val['nb_participant'] = nb_participant
val['presentiel'] = retVal['presentiel']
val['prix_session'] = retVal['prix_session']
val['title'] = retVal['myclass_collection'][0]['title']
val['domaine'] = retVal['myclass_collection'][0]['domaine']
if (str(retVal['myclass_collection'][0]['duration_unit']) == "heure"):
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " h"
elif (str(retVal['myclass_collection'][0]['duration_unit']) == "jour"):
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " j"
elif (str(retVal['myclass_collection'][0]['duration_unit']) == "semaine"):
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " s"
elif (str(retVal['myclass_collection'][0]['duration_unit']) == "mois"):
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " m"
elif (str(retVal['myclass_collection'][0]['duration_unit']) == "annee"):
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " a"
elif (str(retVal['myclass_collection'][0]['duration_unit']) == "user_rythme"):
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " u"
else:
val['duration_concat'] = str(retVal['myclass_collection'][0]['duration']) + " ?"
val['duration'] = retVal['myclass_collection'][0]['duration']
val['duration_unit'] = retVal['myclass_collection'][0]['duration_unit']
## Recuperation du nombre d'inscrits
Count_Inscrit = MYSY_GV.dbname['inscription'].count_documents(
{'session_id': str(retVal['code_session']), 'class_internal_url': str(retVal['class_internal_url']),
'status': "1"})
val['nb_inscrit'] = str(Count_Inscrit)
## Recuperation du nombre de preinscrits
Count_Preinscrit = MYSY_GV.dbname['inscription'].count_documents(
{'session_id': str(retVal['code_session']), 'class_internal_url': str(retVal['class_internal_url']),
'status': "0"})
val['nb_preinscrit'] = str(Count_Preinscrit)
taux_replissage = "0"
if (str(nb_participant) != "0"):
taux_replissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)),
2)
val['taux_replissage'] = str(taux_replissage)
RetObject.append(mycommon.JSONEncoder().encode(val))