diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5b13f5c..6a68c52 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,14 +1,10 @@ - + - - - - - + @@ -353,7 +356,6 @@ - @@ -378,6 +380,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 4815ff3..5cc53e2 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1615710,3 +1615710,292 @@ INFO:root:2023-07-04 22:38:31.759821 : Security check : IP adresse '127.0.0.1' INFO:werkzeug:127.0.0.1 - - [04/Jul/2023 22:38:45] "POST /myclass/api/InitUserPasswd/ HTTP/1.1" 200 - INFO:root:2023-07-04 22:42:16.792175 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [04/Jul/2023 22:42:18] "POST /myclass/api/InitUserPasswd/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:08.059230 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-05 13:57:08.059230 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-05 13:57:08.060237 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-05 13:57:08.060237 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-05 13:57:08.060237 : ++ 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-07-05 13:57:19.255295 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-05 13:57:19.255295 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-05 13:57:19.255295 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-05 13:57:19.255295 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-05 13:57:19.255295 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 167-826-616 +INFO:root:2023-07-05 13:57:34.037806 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.037806 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.038808 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:34.291602 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.293598 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:34.634750 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:34.940131 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.941144 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.943146 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.945551 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.949456 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:34.955232 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:35.296326 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.297421 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.299549 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.300578 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.301962 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.304125 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:35.639436 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.639954 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.640996 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.642992 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:57:35.645332 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:35.650707 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:57:35.960231 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:57:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:51.231119 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:51] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:51.498401 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:51] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:51.682714 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:58:51.684266 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:58:51.686271 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:58:51.696922 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:51] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:51] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:51] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:51.860291 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:51] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:56.899912 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:56] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:59.368268 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 13:58:59.671106 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 13:58:59.672106 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:59] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 13:58:59] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:00:02.442213 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:00:02.444292 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:00:02.445310 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:00:02] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:00:02] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:00:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:00:59.410229 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:00:59.410758 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:00:59.416007 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:00:59] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:00:59] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:00:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:01:20.414035 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:01:20.416035 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:01:20.417035 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:01:20] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:01:20] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:01:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:01:55.703496 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:01:55.704516 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:01:55.710547 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:01:55] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:01:55] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:01:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:02:04.016291 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:02:04] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:02:04.323791 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:02:04.324825 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:02:04.325864 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:02:04.329165 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:02:04] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:02:04] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:02:04] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:02:04] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:02:05.346249 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:02:05] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:05:47.137963 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:05:47.139396 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:05:47.143418 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:05:47] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:05:47] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:05:47] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:06:38.089426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:06:38] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:06:38.403165 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:06:38.406909 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:06:38] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:06:38] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:07:43.409734 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:07:43.410735 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:07:43.411967 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:07:43] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:07:43] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:07:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:07:56.006626 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:07:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:07:56.320017 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:07:56.323040 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:07:56] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:07:56] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:08:11.485972 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:08:11.486985 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:08:11.487997 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:11] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:11] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:11] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:08:36.346963 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:36] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:08:36.662353 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:08:36.663349 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:36] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:36] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:08:59.034993 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:08:59.036400 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:08:59.043809 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:59] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:59] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:08:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:10:22.496141 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:10:22.497558 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:10:22.502548 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:10:22] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:10:22] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:10:22] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:11:19.850523 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:11:19] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:11:20.165369 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:11:20.167904 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:11:20] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:11:20] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:11:57.431036 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:11:57.432341 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:11:57.442368 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:11:57] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:11:57] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:11:57] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:12:35.767098 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:12:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:12:36.081224 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:12:36.082236 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:12:36] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:12:36] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:13:07.588078 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:13:07.589893 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:13:07.595818 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:13:07] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:13:07] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:13:07] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:15:04.564414 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:15:04.566422 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:15:04.572191 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:15:04] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:15:04] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:15:04] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:15:52.290486 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:15:52] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:15:52.607759 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:15:52.609754 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:15:52] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:15:52] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:17:04.900244 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:17:04.902624 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:17:04.902624 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:04] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:04] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:04] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:17:51.451804 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:51] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:17:51.755007 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:17:51.758523 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:51] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:51] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:17:52.430937 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:17:52.433372 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:17:52.434385 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:52] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:52] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:17:52] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:18:15.204567 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:18:15] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:18:15.514754 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:18:15.515763 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:18:15] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:18:15] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:22:25.545016 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:22:25.550015 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:25] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:22:25.558111 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:25] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:25] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:22:31.629374 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:31] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:22:31.947841 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:22:31.950848 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:22:31.952843 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:22:31.959846 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:31] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:31] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:31] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:22:31] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:24:10.857252 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:24:10.858349 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:24:10.859371 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:10] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:10] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:10] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:24:14.279281 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:14] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-07-05 14:24:14.590760 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:24:14.591761 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:24:14.592761 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-05 14:24:14.595758 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:14] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:14] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:14] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [05/Jul/2023 14:24:14] "POST /myclass/api/GetListEvaluation_Session/ 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-07-05 14:38:54.876587 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-05 14:38:54.878034 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-05 14:38:54.878034 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-05 14:38:54.878034 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-05 14:38:54.878034 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 167-826-616 +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-07-05 14:39:29.867234 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-05 14:39:29.867234 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-05 14:39:29.867234 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-05 14:39:29.868239 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-05 14:39:29.868239 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 167-826-616 +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-07-05 14:40:03.387320 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-05 14:40:03.387320 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-05 14:40:03.387320 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-05 14:40:03.387320 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-05 14:40:03.387320 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 167-826-616 diff --git a/Session_Formation.py b/Session_Formation.py index ae67b77..1e0502f 100644 --- a/Session_Formation.py +++ b/Session_Formation.py @@ -187,7 +187,7 @@ def Add_Update_SessionFormation(diction): str(inspect.stack()[0][ 3]) + " - Impossible de créer/mettre à jour la session de formation. La date de fin n'est pas au format jj/mm/aaaa ") - return False, " - Impossible de créer/mettre à jour la session de formation. La date de fin n'est pas au format jj/mm/aaaa " + return False, " - La date de fin n'est pas au format jj/mm/aaaa " local_status = mycommon.CheckisDate(str(diction['date_debut_inscription'])[0:10]) if (local_status is False): @@ -195,15 +195,15 @@ def Add_Update_SessionFormation(diction): str(inspect.stack()[0][ 3]) + " - Impossible de créer/mettre à jour la session de formation. La date_debut_inscription n'est pas au format jj/mm/aaaa ") - return False, " - Impossible de créer/mettre à jour la session de formation. La date_debut_inscription n'est pas au format jj/mm/aaaa " + return False, " - La date de début d'inscription n'est pas au format jj/mm/aaaa " local_status = mycommon.CheckisDate(str(diction['date_fin_inscription'])[0:10]) if (local_status is False): mycommon.myprint( str(inspect.stack()[0][ - 3]) + " - Impossible de créer/mettre à jour la session de formation. La date_fin_inscription n'est pas au format jj/mm/aaaa ") + 3]) + " - La date de fin d'inscription n'est pas au format jj/mm/aaaa ") - return False, " - Impossible de créer/mettre à jour la session de formation. La date_fin_inscription n'est pas au format jj/mm/aaaa " + return False, " - La date de fin d'inscription n'est pas au format jj/mm/aaaa " @@ -215,8 +215,8 @@ def Add_Update_SessionFormation(diction): diction['date_debut']) + " est postérieure à la date de fin " + str(diction['date_fin']) ) - return False, " Impossible de créer la session de formation : La date debut " + str(diction['date_debut']) + \ - " est postérieure à la date de fin " + str(diction['date_fin']) + " " + return False, " Impossible de créer la session de formation : La date debut de formation " + str(diction['date_debut']) + \ + " est postérieure à la date de fin de formation " + str(diction['date_fin']) + " " if (datetime.strptime(str(diction['date_debut_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime( @@ -230,6 +230,29 @@ def Add_Update_SessionFormation(diction): return False, " Impossible de créer /mettre à jour la session de formation : La date_debut_inscription " + str(diction['date_debut_inscription']) + \ " est postérieure à la date_fin_inscription " + str(diction['date_fin_inscription']) + " " + + + # Verification : Date de debut inscription n'est pas > date de fin de formation + if (datetime.strptime(str(diction['date_debut_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime( + str(diction['date_fin'])[0:10], '%d/%m/%Y')): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - La date de debut d'inscription " + str( diction['date_debut_inscription']) + " est postérieure à la date de fin de formation " + str(diction['date_fin'])) + + return False, " La date de debut d'inscription " + str( diction['date_debut_inscription']) + " est postérieure à la date de fin de formation " + str(diction['date_fin'])+" " + + # Verification : Date de fin inscription n'est pas > date de fin de formation + if (datetime.strptime(str(diction['date_fin_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime( + str(diction['date_fin'])[0:10], '%d/%m/%Y')): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - La date de fin d'inscription " + str( + diction['date_fin_inscription']) + " est postérieure à la date de fin de formation " + str( + diction['date_fin'])) + + return False, " La date de fin d'inscription " + str( + diction['date_fin_inscription']) + " est postérieure à la date de fin de formation " + str( + diction['date_fin']) + " " + + """ mytoday = datetime.today().strftime("%d/%m/%Y") if (datetime.strptime(str(diction['date_debut'])[0:10], '%d/%m/%Y') < datetime.strptime(str(mytoday).strip(), '%d/%m/%Y')) :