10/04/23 - 17h

master
cherif 2023-04-10 16:56:59 +02:00
parent 74371be42a
commit 4d5118ecbd
4 changed files with 297 additions and 25 deletions

View File

@ -2,13 +2,10 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="07/04/23 - 11h">
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Attestation_Certificat.py" beforeDir="false" afterPath="$PROJECT_DIR$/Attestation_Certificat.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$/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$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@ -61,7 +61,7 @@ def AddStagiairetoClass(diction):
Verification de la liste des champs obligatoires
"""
field_list_obligatoire = ['nom', 'prenom', 'email', 'telephone', 'modefinancement',
'class_internal_url', 'session_id']
'class_internal_url', 'session_id', 'token']
for val in field_list_obligatoire:
if val not in diction:
@ -74,8 +74,20 @@ def AddStagiairetoClass(diction):
session_id = ""
if ("session_id" in diction.keys()):
if diction['session_id']:
mydata['session_id'] = diction['session_id']
session_id = diction['session_id']
mydata['session_id'] = str(diction['session_id']).strip()
session_id = str(diction['session_id']).strip()
mytoken = ""
if ("token" in diction.keys()):
if diction['token']:
mytoken = str(diction['token']).strip()
partner_recid = mycommon.get_parnter_recid_from_token(mytoken)
if (partner_recid is False):
mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible de recuperer les données du partenaire ")
return False, "Impossible de recuperer les données du partenaire "
"""
Recuperation des info de la session de formation
@ -102,29 +114,29 @@ def AddStagiairetoClass(diction):
if ("nom" in diction.keys()):
if diction['nom']:
mydata['nom'] = diction['nom']
mydata['nom'] = str(diction['nom']).strip()
if ("prenom" in diction.keys()):
if diction['prenom']:
mydata['prenom'] = diction['prenom']
mydata['prenom'] = str(diction['prenom']).strip()
if ("employeur" in diction.keys()):
if diction['employeur']:
mydata['employeur'] = diction['employeur']
mydata['employeur'] = str(diction['employeur']).strip()
if ("telephone" in diction.keys()):
if diction['telephone']:
mydata['telephone'] = diction['telephone']
mydata['telephone'] = str(diction['telephone']).strip()
if ("inscription_validation_date" in diction.keys()):
if diction['inscription_validation_date']:
mydata['inscription_validation_date'] = diction['inscription_validation_date']
mydata['inscription_validation_date'] = str(diction['inscription_validation_date']).strip()
if ("email" in diction.keys()):
if diction['email']:
mydata['email'] = diction['email']
mydata['email'] = str(diction['email']).strip()
regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
if (not re.fullmatch(regex, str(diction['email']) ) ):
mycommon.myprint(
@ -134,18 +146,16 @@ def AddStagiairetoClass(diction):
if ("modefinancement" in diction.keys()):
if diction['modefinancement']:
mydata['modefinancement'] = diction['modefinancement']
mydata['modefinancement'] = str(diction['modefinancement']).strip()
if ("opco" in diction.keys()):
if diction['opco']:
mydata['opco'] = diction['opco']
mydata['opco'] = str(diction['opco']).strip()
if ("class_internal_url" in diction.keys()):
if diction['class_internal_url']:
mydata['class_internal_url'] = diction['class_internal_url']
mydata['class_internal_url'] = str(diction['class_internal_url']).strip()
mydata['date_update'] = datetime.now().strftime("%d/%m/%Y, %H:%M:%S")
@ -153,13 +163,13 @@ def AddStagiairetoClass(diction):
new_status = "0" # 0 ==> Preinscription, par defaut
if ("status" in diction.keys()):
if diction['status']:
new_status = diction['status']
new_status = str(diction['status']).strip()
mydata['status'] = str(new_status)
new_price = "0" # 0 ==> par defaut
if ("price" in diction.keys()):
if diction['price']:
new_price = diction['price']
new_price = str(diction['price']).strip()
mydata['price'] = new_price
coll_inscription = MYSY_GV.dbname['inscription']
@ -1456,6 +1466,7 @@ def AddStagiairetoClass_mass(file=None, Folder=None, diction=None):
mydata['telephone'] = str(df['telephone'].values[n])
mydata['email'] = str(df['email'].values[n])
mydata['session_id'] = str(session_id)
mydata['token'] = str(my_token)
modefinancement = ""
if ("modefinancement" in df.keys()):

View File

@ -1559298,3 +1559298,258 @@ INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 15:32:43] "POST /myclass/api/GetTableau
INFO:root:2023-04-10 15:32:43.930130 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 15:32:43] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 15:32:43] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:21:11.984088 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-04-10 16:21:11.985088 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-04-10 16:21:11.986300 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-04-10 16:21:11.986300 : ++ FLASK PORT 5001 ++
INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://localhost:5001
INFO:werkzeug:Press CTRL+C to quit
INFO:werkzeug: * Restarting with stat
INFO:root:2023-04-10 16:21:40.075544 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-04-10 16:21:40.076967 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-04-10 16:21:40.076967 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-04-10 16:21:40.076967 : ++ FLASK PORT 5001 ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 877-541-979
INFO:root:2023-04-10 16:22:16.635143 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:16.644450 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:16.648931 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:16] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:16] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:16] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:20.101161 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:20.105163 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:20] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:21.453640 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:21.487837 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:21.489832 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:21.491843 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:21.493843 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:21.494835 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:21.822212 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:21.832210 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:21.840551 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:21.848236 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:21.856243 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.025833 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.155322 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.162315 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.171322 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:22:22.177325 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.195390 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.344829 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.469850 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:22:22.478302 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:22:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-04-10 16:26:00.497911 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-04-10 16:26:00.498902 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-04-10 16:26:00.498902 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-04-10 16:26:00.498902 : ++ FLASK PORT 5001 ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 877-541-979
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-04-10 16:28:43.544575 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-04-10 16:28:43.545577 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-04-10 16:28:43.545577 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-04-10 16:28:43.545577 : ++ FLASK PORT 5001 ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 877-541-979
INFO:root:2023-04-10 16:30:41.499888 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:30:41.507883 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:30:41.753641 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:30:41] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:30:41] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:30:41] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:01.287717 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:02.486906 : partner_login Connexion partnair contact@mysy-training.com : OK, Date : 2023-04-10 16:31:01.291216 , _id = 641c21666cad03956ab28252
INFO:root:2023-04-10 16:31:02.494636 : partner_login Connexion partener_token : OK , _id = 641c23520d5d7f136a823b3c
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:02] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:02.823090 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:02.832157 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:02] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:02.838199 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:02.841911 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:02.853169 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:02] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:03.306055 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:03] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:10.447440 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:10.453014 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:10.460051 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:10] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:10] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:10] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:15.644367 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:15.650913 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:15.660613 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:15] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:15] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:15.673211 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:15.683236 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:15] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:15] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:15] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:17.938027 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:17] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:42.190928 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:42.311721 : Pre_incription_training_confirmation_mail -[Errno 11001] getaddrinfo failed - ERRORRRR AT Line : 442
INFO:root:2023-04-10 16:31:42.318253 : Notification_partner_Pre_incription_mail -[Errno 11001] getaddrinfo failed - ERRORRRR AT Line : 551
INFO:root:2023-04-10 16:31:42.322252 : WARNING : Impossible d'envoyer le mail de preinscriton à AddStagiairetoClass - l'adresse email qsdqsdqs@qsdqs.fr pour la session sdsq
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:42] "POST /myclass/api/AddStagiairetoClass/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:45.526985 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:45.534067 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:45.545554 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:31:45.550890 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:45] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:45] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:45] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:45] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:31:58.886957 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:31:58] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-04-10 16:34:55.947722 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-04-10 16:34:55.947722 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-04-10 16:34:55.947722 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-04-10 16:34:55.947722 : ++ FLASK PORT 5001 ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 877-541-979
INFO:root:2023-04-10 16:34:56.016781 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:34:56.021295 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:34:56.026708 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:34:56] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:34:56] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:34:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:35:03.919902 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:35:03.927021 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:35:03.933838 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:03] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:03] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:03] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:35:08.823425 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:35:08.829452 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:35:08.840454 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:08] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:35:08.844441 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:08] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:35:08.852075 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:08] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:08] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:08] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:35:11.202298 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:11] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:35:17.580057 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:35:17] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:37:34.893292 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:37:34.897761 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:37:34.905434 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:34] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:34] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:34] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:37:48.647288 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:37:48.651642 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:37:48.656675 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:48] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:48] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:37:52.211435 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:37:52.218000 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:37:52.226426 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:52] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:52] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:37:52.240726 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:52] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:37:52.252025 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:52] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:52] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:37:54.399459 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:37:54] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:38:00.415134 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:38:00] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:42:43.585280 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:42:43.591896 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:42:43.598384 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:42:43] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:42:43] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:42:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:48:03.495622 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:48:03.500802 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:48:03.507013 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:03] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:03] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:03] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:48:13.997053 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:48:14.001829 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:48:14.008660 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:48:14.015787 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:14] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:14] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:48:14.024039 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:14] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:14] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:14] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:48:16.564640 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:48:16] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:49:10.443727 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:49:10.449910 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:49:10.455459 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:10] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:10] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:10] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:49:39.711587 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:39] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:49:39.741896 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:49:39.743881 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:39] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:39] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:49:57.691638 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:49:57.697170 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:49:57.705686 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:57] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:57] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:49:57.728167 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:57] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:49:57.737908 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:57] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:49:57] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:53:05.391347 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:53:05.398301 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:53:05.403331 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:05] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:05] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:53:12.717342 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:53:12.723712 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:53:12.734556 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-04-10 16:53:12.737825 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 -
INFO:root:2023-04-10 16:53:12.764244 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -

View File

@ -2551,11 +2551,20 @@ def GetAttendeeDetail_perSession(diction):
'email':str(diction['attendee_email'])})
my_retrun_dict = {}
my_retrun_dict['session_id'] = local_Insc_retval['session_id']
my_retrun_dict['date_du'] = local_Insc_retval['date_du']
my_retrun_dict['date_au'] = local_Insc_retval['date_au']
my_retrun_dict['ville'] = local_Insc_retval['ville']
my_retrun_dict['code_postal'] = local_Insc_retval['code_postal']
if ("session_id" in local_Insc_retval.keys()):
my_retrun_dict['session_id'] = local_Insc_retval['session_id']
if ("date_du" in local_Insc_retval.keys()):
my_retrun_dict['date_du'] = local_Insc_retval['date_du']
if ("date_au" in local_Insc_retval.keys()):
my_retrun_dict['date_au'] = local_Insc_retval['date_au']
if ("ville" in local_Insc_retval.keys()):
my_retrun_dict['ville'] = local_Insc_retval['ville']
if ("code_postal" in local_Insc_retval.keys()):
my_retrun_dict['code_postal'] = local_Insc_retval['code_postal']
if ("certification_send_date" in local_Insc_retval.keys()):
if (str(local_Insc_retval['certification_send_date'])):