03/05/2025 - 20h

Signed-off-by: cherif <cherif.balde@yahoo.fr>
master
cherif 2025-05-03 19:56:27 +02:00
parent 35db83eb12
commit 2708bc74bd
3 changed files with 291 additions and 31 deletions

View File

@ -1,13 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="02/05/2025 - 20h">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="03/05/2025 - 20h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/Inscription_mgt.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/base_class_calcul_note.py" beforeDir="false" afterPath="$PROJECT_DIR$/base_class_calcul_note.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/note_evaluation_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/note_evaluation_mgt.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -84,13 +81,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00402" summary="sdfsdsdsd">
<created>1727982203432</created>
<option name="number" value="00402" />
<option name="presentableId" value="LOCAL-00402" />
<option name="project" value="LOCAL" />
<updated>1727982203433</updated>
</task>
<task id="LOCAL-00403" summary="05/10/2024 - 12h">
<created>1728125449140</created>
<option name="number" value="00403" />
@ -427,7 +417,14 @@
<option name="project" value="LOCAL" />
<updated>1746211624601</updated>
</task>
<option name="localTasksCounter" value="451" />
<task id="LOCAL-00451" summary="03/05/2025 - 20h">
<created>1746293658249</created>
<option name="number" value="00451" />
<option name="presentableId" value="LOCAL-00451" />
<option name="project" value="LOCAL" />
<updated>1746293658250</updated>
</task>
<option name="localTasksCounter" value="452" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -469,7 +466,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="sdfdd" />
<MESSAGE value="31/12/2024 - 12h30" />
<MESSAGE value="03/01/2025 - 17h30" />
<MESSAGE value="04/01/2025 - 14h48" />
@ -494,6 +490,7 @@
<MESSAGE value="25/04/2025 - 15h" />
<MESSAGE value="30/04/2025 - 15h" />
<MESSAGE value="02/05/2025 - 20h" />
<option name="LAST_COMMIT_MESSAGE" value="02/05/2025 - 20h" />
<MESSAGE value="03/05/2025 - 20h" />
<option name="LAST_COMMIT_MESSAGE" value="03/05/2025 - 20h" />
</component>
</project>

View File

@ -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 -

View File

@ -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