31/08/2023 - 21h30

master
cherif 2023-08-31 21:26:14 +02:00
parent e8be2194cd
commit 69a99f1ecf
3 changed files with 898 additions and 18 deletions

View File

@ -4,9 +4,7 @@
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="30/08/23 - 22h">
<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$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ressources_humaines.py" beforeDir="false" afterPath="$PROJECT_DIR$/ressources_humaines.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ressources_materiels.py" beforeDir="false" afterPath="$PROJECT_DIR$/ressources_materiels.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@ -1788943,3 +1788943,414 @@ INFO:root:2023-08-31 12:59:41.192682 : Security check : IP adresse '127.0.0.1'
INFO:root:2023-08-31 12:59:41.198690 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 12:59:41] "POST /myclass/api/Get_List_Ressource_Materielle_no_filter/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 12:59:41] "POST /myclass/api/Get_Related_Target_Materiel_Collection_Data/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:10:49.704303 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 18:10:49.705306 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 18:10:49.705306 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 18:10:49.706308 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 18:10:49.706308 : ++ LMS_BAS_URL mysy-training.com/ ++
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-08-31 18:11:10.193293 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 18:11:10.193293 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 18:11:10.193293 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 18:11:10.193293 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 18:11:10.194496 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:root:2023-08-31 18:11:44.568267 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:44.571306 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:44.574318 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:44] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:44] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:44] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:45.464654 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:45.465895 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:45.470166 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:45] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:45] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:45] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:45.885809 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:45.888799 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.091832 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.096619 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.601978 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.608507 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.614042 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.619077 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.619077 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.627496 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.627496 : La session de connexion n'est pas valide
INFO:root:2023-08-31 18:11:46.630493 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.641906 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.645392 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.649660 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.654002 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.660896 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.662060 : La session de connexion n'est pas valide
INFO:root:2023-08-31 18:11:46.666433 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.671961 : La session de connexion n'est pas valide
INFO:root:2023-08-31 18:11:46.675997 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.687963 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.689041 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.696127 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.701890 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.707236 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.708135 : La session de connexion n'est pas valide
INFO:root:2023-08-31 18:11:46.712838 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.716812 : La session de connexion n'est pas valide
INFO:root:2023-08-31 18:11:46.722636 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.728091 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.734047 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:46.734904 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:46.746221 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.304105 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.305103 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.307103 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.308103 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.310107 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.314101 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.320101 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.327099 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.329101 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.642221 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.643227 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.644232 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.645240 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.647491 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.649885 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.649885 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.659780 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.665653 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.969249 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.972949 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.977962 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.983733 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.985845 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.986854 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:47.987846 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:47.994234 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:48.000244 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:48.284584 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:48.287581 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:48.292228 : La session de connexion n'est pas valide
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:50.317413 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:50] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:50.485882 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:50.489088 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:50.495571 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:50.501240 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:50] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:50.514275 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:50.575004 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:50] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:11:53.530569 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:53.535993 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:53.541046 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:11:53.547597 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:53] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:53] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:53] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:11:53] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:12:10.010233 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:12:11.032802 : Add_Update_SessionFormation_mass_for_many_class Le champs 'code_externe' de ligne 2 ne correspond pas à une formation valide.
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:12:11] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:12:52.621561 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:12:52] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:12:52.717184 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:12:52] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:13:20.138135 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:13:20.140437 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:13:20.143690 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:13:20.146912 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:20] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:20] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:20] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:13:24.120347 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:24] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:13:24.512075 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:13:24.515098 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:24] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:13:24] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 18:46:59.478587 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:46:59.481468 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:46:59.484995 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 18:46:59.488764 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:46:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:46:59] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:46:59] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 18:46:59] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 18:47:26.762246 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 18:47:26.763002 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 18:47:26.763002 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 18:47:26.763002 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 18:47:26.763002 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:root:2023-08-31 19:10:37.243511 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:10:37.252588 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:10:37.258443 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:10:37.270238 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:10:37.475650 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:10:37.482374 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:10:37.488417 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:10:37.494096 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:10:37] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:11:23.430860 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:11:23.434727 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:11:23.436722 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:11:23.441712 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:11:23] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:11:23] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:11:23] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:11:23] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:15:56.047912 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:15:56.048903 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:15:56.048903 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:15:56.048903 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:15:56.048903 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:17:48.946593 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:17:48.946593 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:17:48.947597 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:17:48.947597 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:17:48.947597 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:18:34.253153 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:18:34.253153 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:18:34.253153 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:18:34.254152 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:18:34.254152 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:19:51.509188 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:19:51.509188 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:19:51.509188 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:19:51.510192 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:19:51.510192 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:20:38.818149 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:20:38.818149 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:20:38.819149 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:20:38.819149 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:20:38.819149 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:23:20.546921 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:23:20.547926 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:23:20.547926 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:23:20.547926 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:23:20.547926 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:23:58.227933 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:23:58.227933 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:23:58.227933 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:23:58.227933 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:23:58.228930 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:33:16.183728 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:33:16.184731 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:33:16.184731 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:33:16.184731 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:33:16.184731 : ++ LMS_BAS_URL mysy-training.com/ ++
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-08-31 19:33:28.321825 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:33:28.322822 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:33:28.322822 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:33:28.322822 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:33:28.322822 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:root:2023-08-31 19:33:31.670288 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:33:31.672784 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:33:31.676439 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:33:31.688668 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:33:31.838176 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:33:31.850172 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:33:31.855195 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:33:31.860195 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:33:31] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:05.954196 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:06.126025 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:06] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:17.146826 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:17] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:20.368089 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:20.373107 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:20.383609 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:20.389825 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:20] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:20] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:20] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:35.951907 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:36] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:36.740343 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:36] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:54.806583 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:54.811561 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:54.815650 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:54] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:54.825310 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:54] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:54.964675 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:54] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:34:59.622703 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:59.630070 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:59.633939 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:34:59.644630 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:59] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:59] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:34:59] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:35:30.169848 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:35:30] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:35:30.314742 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:35:30] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:36:07.052447 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:36:07.058904 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:36:07.066614 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:36:07.073867 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:36:07] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:36:07] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:36:07] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:36:07] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:36:12.082564 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:36:13.319570 : Add_Update_SessionFormation_mass Erreur : Ligne 5 : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:36:13] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:37:40.954935 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:37:40.954935 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:37:40.954935 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:37:40.954935 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:37:40.954935 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:47:14.866364 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:47:14.866364 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:47:14.867373 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:47:14.867373 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:47:14.867373 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:root:2023-08-31 19:47:26.262453 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:47:27.401980 : Controle_Add_Update_SessionFormation_mass Erreur : Ligne 5 : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:47:27] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:50:40.594939 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:50:40.595962 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:50:40.595962 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:50:40.595962 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:50:40.595962 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:root:2023-08-31 19:50:42.548055 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:50:43.635959 : Controle_Add_Update_SessionFormation_mass Erreur : Ligne 5 : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:50:43] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:root:2023-08-31 19:53:28.356976 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-08-31 19:53:28.356976 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-08-31 19:53:28.356976 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-08-31 19:53:28.356976 : ++ FLASK PORT 5001 ++
INFO:root:2023-08-31 19:53:28.356976 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 138-859-232
INFO:root:2023-08-31 19:53:30.749125 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-08-31 19:53:31.979652 : Controle_Add_Update_SessionFormation_mass Erreur : Ligne 5 : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:53:31] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:54:04.453895 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:54:04] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 -
INFO:root:2023-08-31 19:54:05.090157 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [31/Aug/2023 19:54:05] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -

View File

@ -354,7 +354,7 @@ def Add_Update_SessionFormation(diction):
if (len(str(session_id)) <= 0):
# La session n'existe pas, on fait une simple creation
print(" ### mydata = ", mydata)
#print(" ### mydata = ", mydata)
coll_name = MYSY_GV.dbname['session_formation']
ret_val = coll_name.insert_one(mydata)
@ -745,11 +745,11 @@ def GetAllValideSessionPartner_List(diction):
val['nb_preinscrit'] = str(Count_Preinscrit)
taux_replissage = "0"
taux_remplissage = "0"
if( str(nb_participant) != "0"):
taux_replissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)), 2)
taux_remplissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)), 2)
val['taux_replissage'] = str(taux_replissage)
val['taux_remplissage'] = str(taux_remplissage)
RetObject.append(mycommon.JSONEncoder().encode(val))
@ -916,12 +916,12 @@ def GetAllValideSessionPartner_List_filter_like(diction):
val['nb_preinscrit'] = str(Count_Preinscrit)
taux_replissage = "0"
taux_remplissage = "0"
if (str(nb_participant) != "0"):
taux_replissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)),
taux_remplissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)),
2)
val['taux_replissage'] = str(taux_replissage)
val['taux_remplissage'] = str(taux_remplissage)
RetObject.append(mycommon.JSONEncoder().encode(val))
@ -1080,12 +1080,12 @@ def GetAllValideSessionPartner_List_no_filter(diction):
val['nb_preinscrit'] = str(Count_Preinscrit)
taux_replissage = "0"
taux_remplissage = "0"
if (str(nb_participant) != "0"):
taux_replissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)),
taux_remplissage = round(int(mycommon.tryInt(Count_Inscrit)) / int(mycommon.tryInt(nb_participant)),
2)
val['taux_replissage'] = str(taux_replissage)
val['taux_remplissage'] = str(taux_remplissage)
@ -1176,6 +1176,19 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
# print(" Lecture du fichier : "+saved_file)
nb_line = 0
""""
update du 31/08/23 : Controle de l'integrité du fichier avant import
"""
local_controle_status, local_controle_message = Controle_Add_Update_SessionFormation_mass(saved_file,
Folder,
diction)
if (local_controle_status is False):
return local_controle_status, local_controle_message
print(" #### local_controle_message = ", local_controle_message)
df = pd.read_csv(saved_file, encoding='utf8', on_bad_lines='skip', sep=';', encoding_errors='ignore')
df = df.fillna('')
# Dictionnaire des champs utilisables
@ -1185,7 +1198,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
field_list = ['date_debut', 'date_fin', 'nb_participant', 'adresse', 'code_postal', 'ville', 'pays',
'session_status', 'date_debut_inscription', 'date_fin_inscription', 'attestation', 'formateur',
'code_session', "distanciel", "presentiel", "prix_session", 'contenu_ftion', 'lms_class_code',
'session_ondemande', 'session_etape']
'session_ondemande', 'session_etape', 'formation_code_externe']
# Controle du nombre de lignes dans le fichier.
total_rows = len(df)
@ -1204,7 +1217,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
# Verification des champs obligatoires dans le fichier
field_list_obligatoire_file = ['date_debut', 'date_fin', 'session_status', 'code_session']
field_list_obligatoire_file = ['date_debut', 'date_fin', 'session_status', 'code_session', 'formation_code_externe']
for val in field_list_obligatoire_file:
if val not in df.columns:
@ -1244,7 +1257,34 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
nb_inserted_line = nb_inserted_line - 1
continue
external_code = ""
if ("formation_code_externe" in df.keys()):
if (str(df['formation_code_externe'].values[n])):
external_code = str(df['formation_code_externe'].values[n]).strip()
# On verifie l'existance de l'external code pour ce une des formations de ce partner
count_class = MYSY_GV.dbname['myclass'].count_documents(
{'external_code': str(external_code), 'valide': '1',
'locked': '0', 'partner_owner_recid': str(partner_recid)})
if (count_class < 0):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Ligne " + str( n + 2) + " : Le code_externe n'est pas valide.")
return False, " Ligne " + str( n + 2) + " : Le code_externe n'est pas valide."
if (count_class > 1):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Erreur : Ligne " + str(n + 2) + " : Le code_externe corresponds à plus d'une formation.")
return False, " Erreur : Ligne " + str(n + 2) + " : Le code_externe corresponds à plus d'une formation."
class_date = MYSY_GV.dbname['myclass'].find_one(
{'external_code': str(external_code), 'valide': '1',
'locked': '0', 'partner_owner_recid': str(partner_recid)})
if( class_date['external_code'] != formation_data['external_code']):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Erreur : Ligne " + str( n + 2) + " : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes")
return False, " Erreur : Ligne " + str( n + 2) + " : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes"
mydata['date_debut'] = str(df['date_debut'].values[n]).strip().split(" ")[0]
local_status = mycommon.CheckisDate(mydata['date_debut'])
@ -1482,7 +1522,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
mydata['token'] = str(my_token)
mydata['class_internal_url'] = str(class_internal_url)
print(" ### mydata ", mydata)
#print(" ### mydata ", mydata)
diction_for_session_id = {}
diction_for_session_id['date_du'] = str(mydata['date_debut']).split(" ")[0]
@ -1508,7 +1548,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
clean_dict = {k: mydata[k] for k in mydata if (str(mydata[k]) != "nan")}
print("#### Add_Update_SessionFormation_mass : clean_dict ", clean_dict)
#print("#### Add_Update_SessionFormation_mass : clean_dict ", clean_dict)
status, retval = Add_Update_SessionFormation(clean_dict)
if (status is False):
@ -1530,6 +1570,437 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
return False, "Impossible d'importer les sessions de formation en masse "
"""
Cette fonction permet de faire des controles du fichier excel avant l'import.
cela permet d'eviter des imports partiels.
c'est soit le fichier est TOUT bon ou pas.
"""
def Controle_Add_Update_SessionFormation_mass(saved_file=None, Folder=None, diction=None):
try:
'''
# Verification que les champs reçus dans l'API sont bien dans la liste des champs autorisés
# Cela evite le cas ou une entité tierce ajouter les valeurs inconnu dans l'API
# Ici on doit mettre tous les champs possible (obligatoire ou non) de la BDD dans la liste
# field_list.
'''
field_list = ['token', 'class_internal_url']
incom_keys = diction.keys()
for val in incom_keys:
if val not in field_list:
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champ '" + val + "' n'existe pas, Creation session annulée")
return False, " Le champ '" + val + "' n'existe pas, Creation session annulée "
'''
Une fois qu'on a controlé que toutes les clés mise dans l'API sont correcte. etape precedente,
On controle que les champs obligatoires sont presents dans la liste
'''
field_list_obligatoire = ['token', 'class_internal_url']
for val in field_list_obligatoire:
if val not in diction:
mycommon.myprint(
str(inspect.stack()[0][3]) + " - La valeur '" + val + "' n'est pas presente dans liste ")
return False, " La valeur '" + val + "' n'est pas presente dans liste"
my_token = ""
if ("token" in diction.keys()):
if diction['token']:
my_token = diction['token']
# Verifier la validité du token
retval = mycommon.check_partner_token_validity("", my_token)
if retval is False:
return "Err_Connexion", " La session de connexion n'est pas valide"
class_internal_url = ""
if ("class_internal_url" in diction.keys()):
if diction['class_internal_url']:
class_internal_url = diction['class_internal_url']
if (len(str(class_internal_url).strip()) <= 0):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " Le code de la formation est vide : Impossible d'importer la liste des sessions ")
return False, "Le code de la formation est vide. Impossible d'importer la liste des sessions"
# Verifier la validité du token
retval = mycommon.check_partner_token_validity("", my_token)
if retval is False:
return "Err_Connexion", " La session de connexion n'est pas valide"
partner_recid = mycommon.get_parnter_recid_from_token(my_token)
if (partner_recid is False):
mycommon.myprint(
str(inspect.stack()[0][3]) + " - partner_recid KO : Impossible d'importer la liste des sessions ")
return False, "les information de connexion sont incorrectes. Impossible d'importer la liste des sessions"
nb_line = 0
df = pd.read_csv(saved_file, encoding='utf8', on_bad_lines='skip', sep=';', encoding_errors='ignore')
df = df.fillna('')
# Dictionnaire des champs utilisables
'''
# Verification que les noms des colonne sont bien corrects"
'''
field_list = ['date_debut', 'date_fin', 'nb_participant', 'adresse', 'code_postal', 'ville', 'pays',
'session_status', 'date_debut_inscription', 'date_fin_inscription', 'attestation', 'formateur',
'code_session', "distanciel", "presentiel", "prix_session", 'contenu_ftion', 'lms_class_code',
'session_ondemande', 'session_etape', 'formation_code_externe']
# Controle du nombre de lignes dans le fichier.
total_rows = len(df)
if (total_rows > MYSY_GV.MAX_PARTICIPANT_BY_CSV):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le fichier comporte plus de " + str(
MYSY_GV.MAX_PARTICIPANT_BY_CSV) + " lignes.")
return False, " Le fichier comporte plus de " + str(MYSY_GV.MAX_PARTICIPANT_BY_CSV) + " lignes."
# print(df.columns)
for val in df.columns:
if str(val).lower() not in field_list:
mycommon.myprint(
str(inspect.stack()[0][3]) + " : entete du fichier csv. '" + val + "' n'est pas acceptée")
return False, " Entete du fichier csv. '" + val + "' n'est pas acceptée"
# Verification des champs obligatoires dans le fichier
field_list_obligatoire_file = ['date_debut', 'date_fin', 'session_status', 'code_session',
'formation_code_externe']
for val in field_list_obligatoire_file:
if val not in df.columns:
mycommon.myprint(
str(inspect.stack()[0][
3]) + " : Le champ '" + val + "' n'est pas présent dans le fichier. Il est obligatoire")
return False, " Le champ '" + val + "' n'est pas présent dans le fichier. Il est obligatoire "
# Recuperation des info de la formation.
formation_data = MYSY_GV.dbname['myclass'].find_one(
{'internal_url': str(class_internal_url), 'valide': '1', 'locked': '0'})
if (formation_data is None):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " La session de formation n'existe pas : Impossible d'importer la liste des participants ")
return False, "la session de formation n'existe pas. Impossible d'importer la liste des participants"
x = range(0, total_rows)
ignored_line = ""
nb_inserted_line = 0
formation_data_lms_class_code = ""
if ("lms_class_code" in formation_data.keys()):
formation_data_lms_class_code = formation_data['lms_class_code']
for n in x:
mydata = {}
nb_inserted_line = nb_inserted_line + 1
# Si une ligne n'a aucune information obligatoire, alors on ignore la ligne
if (str(df['code_session'].values[n]) == "nan" or str(df['session_status'].values[n]) == "nan" or
str(df['date_debut'].values[n]) == "nan" or str(df['date_fin'].values[n]) == "nan"):
mycommon.myprint(str(
inspect.stack()[0][
3]) + " - La ligne " + str(n + 2) + " a été ignorée")
ignored_line = str(n + 2) + " , " + str(ignored_line)
nb_inserted_line = nb_inserted_line - 1
continue
external_code = ""
if ("formation_code_externe" in df.keys()):
if (str(df['formation_code_externe'].values[n])):
external_code = str(df['formation_code_externe'].values[n]).strip()
# On verifie l'existance de l'external code pour ce une des formations de ce partner
count_class = MYSY_GV.dbname['myclass'].count_documents(
{'external_code': str(external_code), 'valide': '1',
'locked': '0', 'partner_owner_recid': str(partner_recid)})
if (count_class < 0):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Ligne " + str(
n + 2) + " : Le code_externe n'est pas valide.")
return False, " Ligne " + str(n + 2) + " : Le code_externe n'est pas valide."
if (count_class > 1):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Erreur : Ligne " + str(
n + 2) + " : Le code_externe corresponds à plus d'une formation.")
return False, " Erreur : Ligne " + str(
n + 2) + " : Le code_externe corresponds à plus d'une formation."
class_date = MYSY_GV.dbname['myclass'].find_one(
{'external_code': str(external_code), 'valide': '1',
'locked': '0', 'partner_owner_recid': str(partner_recid)})
if (class_date['external_code'] != formation_data['external_code']):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Erreur : Ligne " + str(
n + 2) + " : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes")
return False, " Erreur : Ligne " + str(
n + 2) + " : Le code externe dans le fichier excel ne correpond pas au code externe de la formation sur la quelle vous etes"
mydata['date_debut'] = str(df['date_debut'].values[n]).strip().split(" ")[0]
local_status = mycommon.CheckisDate(mydata['date_debut'])
if (local_status is False):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 2) + "."
"La date debut n'est pas au format jj/mm/aaaa ")
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 2) + ". La date debut n'est pas au format jj/mm/aaaa "
mydata['date_fin'] = str(df['date_fin'].values[n]).strip().split(" ")[0]
local_status = mycommon.CheckisDate(mydata['date_fin'])
if (local_status is False):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 2) + "."
"La date date_fin n'est pas au format jj/mm/aaaa ")
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 1) + ". La date fin n'est pas au format jj/mm/aaaa "
## Verification de la cohérence des dates. Date_du doit <= Date_au
if (datetime.strptime(str(mydata['date_debut']).strip(), '%d/%m/%Y') > datetime.strptime(
str(mydata['date_fin']).strip(), '%d/%m/%Y')):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " - Impossible de créer la session de formation : La date debut " + str(
mydata['date_debut']) +
" est postérieure à la date de fin " + str(mydata['date_fin']) + " pour la ligne " + str(
n + 2) + " ")
return False, " Impossible de créer la session de formation : La date debut " + str(
mydata['date_debut']) + \
" est postérieure à la date de fin " + str(mydata['date_fin']) + " pour la ligne " + str(
n + 2) + " "
local_nb_participants = "0"
if ("nb_participant" in df.keys()):
if (str(df['nb_participant'].values[n])):
local_nb_participants = str(df['nb_participant'].values[n]).strip()
local_status, new_participants = mycommon.IsInt(local_nb_participants)
if (local_status is False):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champs 'nb_participant' de ligne " + str(
n + 2) + " est incorrecte.")
return False, " Le champs nb_participant de ligne " + str(n + 2) + " est incorrecte. "
mydata['nb_participant'] = str(new_participants)
prix_session = "0"
if ("prix_session" in df.keys()):
if (str(df['prix_session'].values[n])):
prix_session = str(df['prix_session'].values[n]).strip()
local_status, new_prix_session = mycommon.IsFloat(prix_session)
if (local_status is False):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champs 'prix_session' de ligne " + str(
n + 2) + " est incorrecte.")
return False, " Le champs prix_session de ligne " + str(n + 2) + " est incorrecte. "
mydata['prix_session'] = str(new_prix_session)
local_code_session = ""
if ("code_session" in df.keys()):
if (str(df['code_session'].values[n])):
local_code_session = str(df['code_session'].values[n]).strip()
mydata['code_session'] = local_code_session
local_adresse = ""
if ("adresse" in df.keys()):
if (str(df['adresse'].values[n])):
local_adresse = str(df['adresse'].values[n]).strip()
mydata['adresse'] = local_adresse
""" lms_class_code = ""
if ("lms_class_code" in df.keys()):
if (str(df['lms_class_code'].values[n])):
lms_class_code = str(df['lms_class_code'].values[n]).strip()
mydata['lms_class_code'] = lms_class_code """
""" Update du 29/07/23 :
le lms_class_code est pris sur la formation, donc impossible de faire une mise à jour directe sur la session.
Ceci est lié au fait que c'est une formation qui est sur la plateforme LMS
"""
mydata['lms_class_code'] = formation_data_lms_class_code
session_ondemande = "0"
if ("session_ondemande" in df.keys()):
if (str(df['session_ondemande'].values[n])):
session_ondemande = str(df['session_ondemande'].values[n]).strip()
if (session_ondemande != "1" and session_ondemande != "0"):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champs 'session_ondemande' de ligne " + str(
n + 2) + " est incorrecte.")
return False, " Le champs 'session_ondemande' de ligne " + str(
n + 2) + " est incorrecte. Les valeurs acceptées sont '1' ou '0' ou vide"
mydata['session_ondemande'] = session_ondemande
local_code_postal = ""
if ("code_postal" in df.keys()):
if (str(df['code_postal'].values[n])):
local_code_postal = str(df['code_postal'].values[n]).strip()
mydata['code_postal'] = local_code_postal
distanciel = ""
if ("distanciel" in df.keys()):
if (str(df['distanciel'].values[n])):
distanciel = str(df['distanciel'].values[n]).strip()
if (distanciel != "1" and distanciel != "0"):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champs 'distanciel' de ligne " + str(
n + 2) + " est incorrecte.")
return False, " Le champs 'distanciel' de ligne " + str(
n + 2) + " est incorrecte. Les valeurs acceptées sont '1' ou '0' ou vide"
mydata['distantiel'] = distanciel
presentiel = ""
if ("presentiel" in df.keys()):
if (str(df['presentiel'].values[n])):
presentiel = str(df['presentiel'].values[n]).strip()
if (presentiel != "1" and presentiel != "0"):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champs 'presentiel' de ligne " + str(
n + 2) + " est incorrecte.")
return False, " Le champs 'presentiel' de ligne " + str(
n + 2) + " est incorrecte. Les valeurs acceptées sont '1' ou '0' ou vide"
mydata['presentiel'] = presentiel
# mydata['code_postal'] = str(df['code_postal'].values[n]).strip()
local_ville = ""
if ("ville" in df.keys()):
if (str(df['ville'].values[n])):
local_ville = str(df['ville'].values[n]).strip()
mydata['ville'] = local_ville
local_pays = ""
if ("pays" in df.keys()):
if (str(df['pays'].values[n])):
local_pays = str(df['pays'].values[n]).strip()
mydata['pays'] = local_pays
contenu_ftion = ""
if ("contenu_ftion" in df.keys()):
if (str(df['contenu_ftion'].values[n])):
contenu_ftion = str(df['contenu_ftion'].values[n]).strip()
mydata['contenu_ftion'] = contenu_ftion
# mydata['ville'] = str(df['ville'].values[n]).strip()
local_attestation_certif = ""
if ("attestation" in df.keys()):
if (str(df['attestation'].values[n])):
local_attestation_certif = str(df['attestation'].values[n]).strip()
mydata['attestation_certif'] = local_attestation_certif
# mydata['attestation_certif'] = str(df['attestation'].values[n]).strip()
local_formateur = ""
if ("formateur" in df.keys()):
if (str(df['formateur'].values[n])):
local_formateur = str(df['formateur'].values[n]).strip()
mydata['formateur'] = local_formateur
session_status = ""
if ("session_status" in df.keys()):
if (str(df['session_status'].values[n])):
session_status = str(df['session_status'].values[n]).strip()
mydata['session_status'] = session_status
session_etape = ""
if ("session_etape" in df.keys()):
if (str(df['session_etape'].values[n])):
session_etape = str(df['session_etape'].values[n]).strip()
mydata['session_etape'] = session_etape
"""
Update du 11/08/23 :
- le status va etre geré en 0 (desactivé) et 1 (activé)
- mise en commentaire du code ci-dessous
local_session = str(df['session_status'].values[n]).strip()
if( str(local_session) != "0" and str(local_session) != "1" and str(local_session) != "2"):
mycommon.myprint(
str(inspect.stack()[0][3]) + " Le champs 'session_status' de ligne " + str(n+2) + " est incorrecte. Les valeurs acceptées sont 0,1,2")
return False, " Le champs 'session_status' de ligne " + str(n+2) + " est incorrecte. Les valeurs acceptées sont 0,1,2"
if( str(local_session) == "1"):
mydata['session_status'] = str("true")
"""
mydata['date_debut_inscription'] = str(df['date_debut_inscription'].values[n]).strip().split(" ")[0]
local_status = mycommon.CheckisDate(mydata['date_debut_inscription'])
if (local_status is False):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 2) + "."
"La date_debut_inscription n'est pas au format jj/mm/aaaa ")
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 2) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa "
mydata['date_fin_inscription'] = str(df['date_fin_inscription'].values[n]).strip().split(" ")[0]
local_status = mycommon.CheckisDate(mydata['date_fin_inscription'])
if (local_status is False):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 2) + "."
"La date_fin_inscription n'est pas au format jj/mm/aaaa ")
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
n + 1) + ". La date_fin_inscription n'est pas au format jj/mm/aaaa "
## Verification de la cohérence des dates. Date_du doit <= Date_au
if (datetime.strptime(str(mydata['date_debut_inscription']).strip(), '%d/%m/%Y') > datetime.strptime(
str(mydata['date_fin_inscription']).strip(), '%d/%m/%Y')):
mycommon.myprint(
str(inspect.stack()[0][
3]) + " - Impossible de créer la session de formation : La date debut des inscriptions " + str(
mydata['date_debut_inscription']) +
" est postérieure à la date de fin des inscriptions " + str(
mydata['date_fin_inscription']) + " pour la ligne " + str(n + 2) + " ")
return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne " + str(
n + 2) + " "
mydata['token'] = str(my_token)
mydata['class_internal_url'] = str(class_internal_url)
# print(" ### mydata ", mydata)
diction_for_session_id = {}
diction_for_session_id['date_du'] = str(mydata['date_debut']).split(" ")[0]
diction_for_session_id['date_au'] = str(mydata['date_fin']).split(" ")[0]
diction_for_session_id['code_postal'] = str(mydata['code_postal'])
diction_for_session_id['adresse'] = str(mydata['adresse'])
return True, str(total_rows)+" sessions dans le fichier"
except Exception as e:
exc_type, exc_obj, exc_tb = sys.exc_info()
mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
return False, "Impossible de controler le fichier des sessions de formation en masse "
"""
import des sessions de formation en masse
@ -1922,7 +2393,7 @@ def Add_Update_SessionFormation_mass_for_many_class(file=None, Folder=None, dict
mydata['token'] = str(my_token)
mydata['class_internal_url'] = str(class_internal_url)
print(" ### mydata ", mydata)
#print(" ### mydata ", mydata)
diction_for_session_id = {}
diction_for_session_id['date_du'] = str(mydata['date_debut']).split(" ")[0]