diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6753ec4..ec4c9b0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,13 +1,10 @@ - + - - - @@ -469,7 +466,6 @@ - @@ -494,6 +490,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index b45fe22..c1bf010 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -43078,3 +43078,222 @@ INFO:root:2025-05-03 19:33:57.638140 : Security check : IP adresse '127.0.0.1' INFO:root:2025-05-03 19:33:57.641137 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:33:57] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_With_Filter HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:33:57] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_Detail_With_Filter HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:39:18.501970 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:39:18.501970 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:39:18.501970 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:39:18.502994 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:39:18.502994 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:39:52.090476 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:39:52.090476 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:39:52.090476 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:39:52.090476 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:39:52.090476 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:40:56.240773 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:40:56.240773 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:40:56.240773 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:40:56.241780 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:40:56.241780 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:41:15.078774 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:41:15.078774 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:41:15.078774 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:41:15.078774 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:41:15.078774 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:41:44.206786 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:41:44.206786 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:41:44.206786 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:41:44.206786 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:41:44.206786 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:42:27.826149 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:42:27.826149 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:42:27.826149 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:42:27.826149 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:42:27.826149 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:root:2025-05-03 19:42:40.408573 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:42:41.468843 : Cacul_Note_Finale_For_calcul_mode_1 -'NoneType' object is not subscriptable - Line : 633 +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:42:41] "GET /myclass/api/run_pre_calcul_moyenne_somme HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:44:08.052434 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:44:08.052434 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:44:08.052434 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:44:08.052434 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:44:08.052434 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:root:2025-05-03 19:44:20.490458 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:44:21.345982 : Cacul_Note_Finale_For_calcul_mode_1 -'NoneType' object is not subscriptable - Line : 660 +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:44:21] "GET /myclass/api/run_pre_calcul_moyenne_somme HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:46:57.329484 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:46:57.330477 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:46:57.330477 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:46:57.330477 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:46:57.330477 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:root:2025-05-03 19:47:05.283253 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:47:05] "GET /myclass/api/run_pre_calcul_moyenne_somme HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:48:01.346375 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:48:01.346375 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:48:01.346375 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:48:01.346375 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:48:01.346375 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:52:14.222052 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:52:14.222052 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:52:14.222052 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:52:14.222052 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:52:14.222052 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:52:30.322533 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:52:30.322533 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:52:30.322533 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:52:30.322533 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:52:30.322533 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:52:55.928683 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:52:55.929686 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:52:55.929686 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:52:55.929686 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:52:55.929686 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:53:18.090368 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:53:18.090368 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:53:18.090368 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:53:18.090368 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:53:18.090368 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:root:2025-05-03 19:53:18.132339 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:53:18.914779 : Cacul_Note_Finale_For_calcul_mode_1 -'NoneType' object is not subscriptable - Line : 691 +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:53:18] "GET /myclass/api/run_pre_calcul_moyenne_somme HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\base_class_calcul_note.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +DEBUG:httpx:load_ssl_context verify=True cert=None trust_env=True http2=False +DEBUG:httpx:load_verify_locations cafile='C:\\Users\\billa\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\certifi\\cacert.pem' +INFO:root:2025-05-03 19:53:53.776029 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2025-05-03 19:53:53.776029 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2025-05-03 19:53:53.776029 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2025-05-03 19:53:53.776029 : ++ FLASK PORT 5001 ++ +INFO:root:2025-05-03 19:53:53.776029 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 103-267-730 +INFO:root:2025-05-03 19:53:54.845589 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:53:55] "GET /myclass/api/run_pre_calcul_moyenne_somme HTTP/1.1" 200 - +INFO:root:2025-05-03 19:54:10.713275 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:54:10] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2025-05-03 19:54:11.842480 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:54:11.845482 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:54:11] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_With_Filter HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:54:11] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_Detail_With_Filter HTTP/1.1" 200 - +INFO:root:2025-05-03 19:55:27.809919 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:27] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2025-05-03 19:55:28.620072 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:55:28.622612 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:28] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_Detail_With_Filter HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:28] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_With_Filter HTTP/1.1" 200 - +INFO:root:2025-05-03 19:55:32.446155 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:32] "GET /myclass/api/run_pre_calcul_moyenne_somme HTTP/1.1" 200 - +INFO:root:2025-05-03 19:55:38.687134 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:38] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2025-05-03 19:55:40.121718 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:55:40.124419 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:40] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_With_Filter HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:55:40] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_Detail_With_Filter HTTP/1.1" 200 - +INFO:root:2025-05-03 19:56:19.684773 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2025-05-03 19:56:19.687873 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:56:19] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_With_Filter HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [03/May/2025 19:56:19] "POST /myclass/api/Get_List_Evaluation_Final_Note_Classement_Detail_With_Filter HTTP/1.1" 200 - diff --git a/base_class_calcul_note.py b/base_class_calcul_note.py index dffa9e9..4abee59 100644 --- a/base_class_calcul_note.py +++ b/base_class_calcul_note.py @@ -189,7 +189,6 @@ def run_pre_calcul_moyenne_somme(diction): for my_ue_id in tab_ue_ids_splited: my_ue_id = str(my_ue_id).strip() - my_ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one( {'_id': ObjectId(str(my_ue_id)), 'valide': '1', @@ -308,6 +307,24 @@ def run_pre_calcul_moyenne_somme(diction): ) + """ + Calcul de la note finale et du classement + """ + for my_ue_id in tab_ue_ids_splited: + my_ue_id = str(my_ue_id).strip() + + local_diction = {} + local_diction['token'] = diction['token'] + local_diction['class_id'] = diction['class_id'] + local_diction['session_id'] = diction['session_id'] + local_diction['ue_id'] = str(my_ue_id) + local_diction['tab_inscriptions_ids'] = str(tab_inscriptions_ids) + + print(" ### local_diction = ", local_diction) + + local_status, local_retval = Cacul_Note_Finale_For_calcul_mode_1(local_diction) + + return True, tab_note_final except Exception as e: @@ -602,26 +619,49 @@ def Cacul_Note_Finale_For_calcul_mode_1(diction): basic_qry['inscription_id'] = str(my_inscription) + inscri_data = MYSY_GV.dbname['inscription'].find_one({'partner_owner_recid': str(my_partner['recid']), + 'valide': '1', + 'locked': '0', + '_id': ObjectId(str(my_inscription).strip())}, + {'nom': 1, 'prenom': 1, 'email': 1} + ) + + inscri_data_nom = "" + inscri_data_prenom = "" + inscri_data_email = "" + + if( inscri_data and "nom" in inscri_data.keys() ): + inscri_data_nom = inscri_data['nom'] + + if (inscri_data and "prenom" in inscri_data.keys()): + inscri_data_prenom = inscri_data['prenom'] + + if (inscri_data and "email" in inscri_data.keys()): + inscri_data_email = inscri_data['email'] + #### Recuperation des data TD basic_qry['type_eval_id'] = str(type_eval_td_data['_id']) MA_TD_data = MYSY_GV.dbname['session_formation_final_note_classement_detail'].find_one(basic_qry) - print(" ### MA_TD_data = ", MA_TD_data) - MA_TD_float = float(MA_TD_data['moyenne']) - print(" ############################ ") + if (MA_TD_data): + print(" ### MA_TD_data = ", MA_TD_data) + MA_TD_float = float(MA_TD_data['moyenne']) + print(" ############################ ") #### Recuperation des data TP basic_qry['type_eval_id'] = str(type_eval_tp_data['_id']) MA_TP_data = MYSY_GV.dbname['session_formation_final_note_classement_detail'].find_one(basic_qry) - print(" ### MA_TP_data = ", MA_TP_data) - MA_TP_float = float(MA_TP_data['moyenne']) - print(" ############################ ") + if( MA_TP_data ): + print(" ### MA_TP_data = ", MA_TP_data) + MA_TP_float = float(MA_TP_data['moyenne']) + print(" ############################ ") #### Recuperation des data Examen basic_qry['type_eval_id'] = str(type_eval_examen_data['_id']) MA_EXAMEN_data = MYSY_GV.dbname['session_formation_final_note_classement_detail'].find_one(basic_qry) - print(" ### MA_EXAMEN_data = ", MA_EXAMEN_data) - MA_Examen_float = float(MA_EXAMEN_data['moyenne']) - print(" ############################ ") + if (MA_EXAMEN_data): + print(" ### MA_EXAMEN_data = ", MA_EXAMEN_data) + MA_Examen_float = float(MA_EXAMEN_data['moyenne']) + print(" ############################ ") note_finale_ue = ( (( (MA_TD_float + (MA_TP_float * 2 )) / 3 ) + MA_Examen_float) )/ 2 tmp = (MA_TD_float + (MA_TP_float * 2 )) / 3 @@ -636,15 +676,19 @@ def Cacul_Note_Finale_For_calcul_mode_1(diction): print(" ### note_finale_ue = ", note_finale_ue) + local_node['inscription_id'] = str(my_inscription) - local_node['session_id'] = str(MA_EXAMEN_data['session_id']) + local_node['session_id'] = str(diction['session_id']) local_node['type_eval'] = "note_finale" local_node['type_eval_id'] = "----" - local_node['ue_id'] = str(MA_EXAMEN_data['ue_id']) - local_node['class_id'] = str(MA_EXAMEN_data['class_id']) - local_node['inscription_email'] = str(MA_EXAMEN_data['inscription_email']) - local_node['inscription_nom'] = str(MA_EXAMEN_data['inscription_nom']) - local_node['session_id'] = str(MA_EXAMEN_data['session_id']) + + local_node['ue_id'] = str(diction['ue_id']) + local_node['class_id'] = str(diction['class_id']) + local_node['inscription_email'] = str(inscri_data_email) + local_node['inscription_nom'] = str(inscri_data_nom) + local_node['inscription_prenom'] = str(inscri_data_prenom) + + local_node['session_id'] = str(diction['session_id']) local_node['note_td'] = str(MA_TD_float) local_node['note_tp'] = str(MA_TP_float) @@ -675,7 +719,7 @@ def Cacul_Note_Finale_For_calcul_mode_1(diction): return_document=ReturnDocument.AFTER, upsert=True, ) - + """ Après le calcul de la moyenne finale, il faut faire le classement