17/02/23 - 14h
parent
706beebfa1
commit
4b540cade6
|
@ -1,17 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="1122d9e2-679f-46d6-8c4f-97e9ae4041b5" name="Changes" comment="14/02/23 - 21h">
|
||||
<list default="true" id="1122d9e2-679f-46d6-8c4f-97e9ae4041b5" name="Changes" comment="16/02/23 - 22h">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Emargement/fichier_presence.pdf" beforeDir="false" afterPath="$PROJECT_DIR$/Emargement/fichier_presence.pdf" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/GlobalVariable.py" beforeDir="false" afterPath="$PROJECT_DIR$/GlobalVariable.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/Inscription_mgt.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$/Template/MySy_refus_inscription_formation_tpl.html" beforeDir="false" afterPath="$PROJECT_DIR$/Template/MySy_refus_inscription_formation_tpl.html" afterDir="false" />
|
||||
<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$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/tools_cherif/tools_cherif.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools_cherif/tools_cherif.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/emargement.py" beforeDir="false" afterPath="$PROJECT_DIR$/emargement.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -301,7 +295,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1676406875390</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="33" />
|
||||
<task id="LOCAL-00033" summary="16/02/23 - 22h">
|
||||
<created>1676581225101</created>
|
||||
<option name="number" value="00033" />
|
||||
<option name="presentableId" value="LOCAL-00033" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1676581225101</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="34" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
@ -316,7 +317,6 @@
|
|||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="26/11/22 - 23h30" />
|
||||
<MESSAGE value="15/12/2022 - 22h00" />
|
||||
<MESSAGE value="16/12/2022 - 22h00" />
|
||||
<MESSAGE value="20/12/22 - 11h30" />
|
||||
|
@ -341,7 +341,8 @@
|
|||
<MESSAGE value="09/02/23 - 11h" />
|
||||
<MESSAGE value="10/02/23 - 12h" />
|
||||
<MESSAGE value="14/02/23 - 21h" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="14/02/23 - 21h" />
|
||||
<MESSAGE value="16/02/23 - 22h" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="16/02/23 - 22h" />
|
||||
</component>
|
||||
<component name="XDebuggerManager">
|
||||
<breakpoint-manager>
|
||||
|
|
|
@ -1794,7 +1794,7 @@ Cette fonction envoie l'email de demande d'evaluation
|
|||
"""
|
||||
def SendTrainingEvaluationEmail(diction):
|
||||
try:
|
||||
field_list_obligatoire = ['session_id', 'token', 'attendee_email']
|
||||
field_list_obligatoire = ['session_id', 'token', 'attendee_email', 'class_internal_url']
|
||||
|
||||
for val in field_list_obligatoire:
|
||||
if val not in diction:
|
||||
|
@ -1817,6 +1817,7 @@ def SendTrainingEvaluationEmail(diction):
|
|||
# Verifier qui la formation n'a pas deja été evaluée
|
||||
tmp_count = MYSY_GV.dbname['inscription'].count_documents({'session_id': str(diction['session_id']),
|
||||
'email': str(diction['attendee_email']),
|
||||
'class_internal_url': str(diction['class_internal_url']),
|
||||
"eval_date": {"$exists": True}})
|
||||
|
||||
if (tmp_count > 0):
|
||||
|
@ -1827,7 +1828,8 @@ def SendTrainingEvaluationEmail(diction):
|
|||
RetObject = []
|
||||
# Recuperation des infos de la formation
|
||||
local_Insc_retval = MYSY_GV.dbname['inscription'].find_one({'session_id': str(diction['session_id']),
|
||||
'email': str(diction['attendee_email'])})
|
||||
'email': str(diction['attendee_email']),
|
||||
'class_internal_url': str(diction['class_internal_url'])})
|
||||
|
||||
my_retrun_dict = {}
|
||||
|
||||
|
|
1260
Log/log_file.log
1260
Log/log_file.log
File diff suppressed because it is too large
Load Diff
|
@ -274,7 +274,7 @@ def UpdateUserEmargementDate(diction):
|
|||
# Ici on doit mettre tous les champs possible (obligatoire ou non) de la BDD dans la liste
|
||||
# field_list.
|
||||
'''
|
||||
field_list = [ 'session_id', 'token', 'email', 'date', 'matin', 'apresmidi']
|
||||
field_list = [ 'session_id', 'token', 'email', 'date', 'matin', 'apresmidi', 'class_internal_url']
|
||||
incom_keys = diction.keys()
|
||||
for val in incom_keys:
|
||||
if val not in field_list:
|
||||
|
@ -322,6 +322,12 @@ def UpdateUserEmargementDate(diction):
|
|||
if diction['apresmidi']:
|
||||
my_apresmidi = diction['apresmidi']
|
||||
|
||||
class_internal_url = ""
|
||||
if ("class_internal_url" in diction.keys()):
|
||||
if diction['class_internal_url']:
|
||||
class_internal_url = diction['class_internal_url']
|
||||
mydata['class_internal_url'] = class_internal_url
|
||||
|
||||
partner_recid = mycommon.get_parnter_recid_from_token(my_token)
|
||||
if (partner_recid is False):
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible de valider l'emargement ")
|
||||
|
|
Loading…
Reference in New Issue