From 109150a6dbf4b3685e1e0ed3d75f285a73c991ca Mon Sep 17 00:00:00 2001 From: Cherif Date: Tue, 21 Apr 2026 11:33:49 +0200 Subject: [PATCH] 21/04/2026 - 11h30 Signed-off-by: Cherif --- .idea/workspace.xml | 15 +- Job_Cron.py | 11 +- Log/log_file.log | 357 +++++++++++++++++++++++++++++++++++++++++ notes_apprenant_mgt.py | 16 +- prj_common.py | 1 + 5 files changed, 378 insertions(+), 22 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4cf9f29..8746182 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,15 +4,12 @@ - @@ -523,6 +519,7 @@ - \ No newline at end of file diff --git a/Job_Cron.py b/Job_Cron.py index 90c3124..dcd96f5 100644 --- a/Job_Cron.py +++ b/Job_Cron.py @@ -1348,14 +1348,11 @@ def Cron_Daily_Automatic_Qualiopi_Documents(): str(data_automatic_traitement['courrier_template_type_document_id'])) - + #print(" #### BREFORE str(my_session['partner_owner_recid']) = ", str(my_session['partner_owner_recid'])) local_status, my_partner = mycommon.Get_Connected_User_Partner_Data_From_RecID(str(my_session['partner_owner_recid'])) - if (local_status is not True): - return local_status, my_partner - - diction_for_notification_email['token'] = str(my_partner['token']) - - local_status, local_retval = Job_Cron_Common.Cron_Qualiopi_Automatic_Traitement_Notification(diction_for_notification_email) + if (local_status is True): + diction_for_notification_email['token'] = str(my_partner['token']) + local_status, local_retval = Job_Cron_Common.Cron_Qualiopi_Automatic_Traitement_Notification(diction_for_notification_email) return True, "OK" diff --git a/Log/log_file.log b/Log/log_file.log index e1a4a25..4356ca8 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -9534,3 +9534,360 @@ DEBUG:PIL.PngImagePlugin:STREAM b'gAMA' 41 4 DEBUG:PIL.PngImagePlugin:STREAM b'pHYs' 57 9 DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 65458 INFO:werkzeug:127.0.0.1 - - [20/Apr/2026 19:59:06] "GET /myclass/api/Export_To_Excel_Survey_with_filter_Tab_Survey_Id/leQKR1iiquenSIRkpxZt4WZVEpadMgvKpg/69e66625a76337cc4e6b4a33/Stage_Entreprise HTTP/1.1" 200 - +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 07:43:54.382260 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 07:43:54.382260 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 07:43:54.382260 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 07:43:54.382260 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 07:43:54.382260 : ++ LMS_BAS_URL mysy-hosting.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 +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 07:44:04.968226 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 07:44:04.968226 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 07:44:04.968226 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 07:44:04.968226 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 07:44:04.968226 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:root:2026-04-21 08:10:04.775715 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:04.778715 : Le token partner est vide +INFO:root:2026-04-21 08:10:04.779714 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:04.784716 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:04.785735 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:04.795717 : La session de connexion n'est pas valide +INFO:root:2026-04-21 08:10:04.796716 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:04] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:04.822837 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:04] "POST /myclass/api/Get_Nb_User_Internal_Mail_Not_Read/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:06.534823 : get_partner_account - La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:06] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:06.534823 : getRecodedImage - Impossible de récupérer le recid du user +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:06] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:16.670639 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:16] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:16.723712 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:16.724712 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:16.731730 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:16] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:16.738711 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:16] "POST /myclass/api/Get_Nb_User_Internal_Mail_Not_Read/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:16.754716 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:16] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:16] "POST /myclass/api/Get_List_Formulaire/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:16.773239 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:16] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:22.954635 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:22] "POST /myclass/api/Update_Context_Partner_Account/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:22.977633 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:22.979641 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:22.983675 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:22] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:22] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:22] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:10:30.571228 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:10:30.598209 : Update_Evaluation_Type -'examen' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string - Line : 218 +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:10:30] "POST /myclass/api/Update_Evaluation_Type/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:13:32.906052 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:13:32.907038 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:13:32.907038 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:13:32.907038 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:13:32.907038 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:14:38.646521 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:14:38.646521 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:14:38.646521 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:14:38.647539 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:14:38.647539 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:root:2026-04-21 08:14:38.916083 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:14:38.920084 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:14:38.931110 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:14:39] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:14:39] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:14:39] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:14:50.124103 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:14:50] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:14:55.576891 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:14:55] "POST /myclass/api/Update_Evaluation_Type/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:14:55.606313 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:14:55] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:41:40.044300 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:41:40.044300 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:41:40.044300 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:41:40.044300 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:41:40.044300 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:42:29.635747 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:42:29.646734 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:42:29.646734 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:42:29.646734 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:42:29.646734 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:44:42.077898 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:44:42.077898 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:44:42.077898 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:44:42.089008 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:44:42.090010 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:45:38.419722 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:45:38.419722 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:45:38.419722 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:45:38.419722 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:45:38.419722 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:48:25.572650 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:48:25.572650 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:48:25.572650 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:48:25.572650 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:48:25.572650 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:49:37.503474 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:49:37.503474 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:49:37.503474 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:49:37.503474 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:49:37.505080 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:root:2026-04-21 08:52:10.210532 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:52:10] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:52:11.238562 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:52:11] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:52:31.640600 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:52:33.715009 : Add_Evaluation_Type Le champ 'base_authorized_type_evaluation_id' n'est pas autorisé +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:52:33] "POST /myclass/api/Add_Evaluation_Type/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:53:01.835411 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:53:01.836836 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:53:01.838842 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:53:01] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:53:01] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:53:01] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:53:11.621077 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:53:11.633091 : Add_Evaluation_Type L'identifiant du base_authorized_type_evaluation est invalide +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:53:11] "POST /myclass/api/Add_Evaluation_Type/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\notes_apprenant_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 08:54:09.479121 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 08:54:09.479121 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 08:54:09.479121 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 08:54:09.479121 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 08:54:09.479121 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:root:2026-04-21 08:54:09.566448 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:54:09.571446 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:54:09.575446 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:09] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:09] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:09] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:12.708580 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:12] "POST /myclass/api/Add_Evaluation_Type/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:12.742569 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:12] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:18.579396 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:18] "POST /myclass/api/Update_Evaluation_Type/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:18.613481 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:18] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:26.275118 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:26] "POST /myclass/api/Update_Evaluation_Type/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:26.314365 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:26] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:54:40.642920 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:54:40.646929 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:54:40.651926 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:40] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:40] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:54:40] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:55:07.153309 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:55:07.157307 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:55:07.162309 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:55:07] "POST /myclass/api/get_FI_base_authorized_type_evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:55:07] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:55:07] "POST /myclass/api/Get_List_Type_Evaluation/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:45.069830 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:45] "POST /myclass/api/Update_Context_Partner_Account/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:45.127444 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:45] "POST /myclass/api/Get_List_Admission_Setup/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:49.137874 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:49] "POST /myclass/api/Update_Context_Partner_Account/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:49.167514 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:49] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:49.170067 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:49] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:53.188197 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:53] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:56:58.737911 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:56:58.741919 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:58] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:56:58] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:57:01.980893 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:57:01] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:58:31.034056 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:31] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:58:50.000977 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:50] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:58:55.658554 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:58:55.661553 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:58:55.665555 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:58:55.668553 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:55] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:55] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:55] "POST /myclass/api/Get_Nb_User_Internal_Mail_Not_Read/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:58:55.706554 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:58:55.708553 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:55] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:58:55.713555 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:55] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:58:55] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:59:05.746962 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:59:05] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:59:05.750962 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:59:05] "POST /myclass/api/Get_List_Partner_Document_Super_Admin_no_filter/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:59:15.207024 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 08:59:15.211007 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:59:15] "POST /myclass/api/Get_Given_Partner_Document_Super_Admin/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:59:15] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2026-04-21 08:59:43.952281 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 08:59:43] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2026-04-21 09:00:44.534507 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 09:00:44] "POST /myclass/api/Get_List_Partner_Document_with_filter_Admin/ HTTP/1.1" 200 - +INFO:root:2026-04-21 09:00:45.677565 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2026-04-21 09:00:45.680573 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 09:00:45] "POST /myclass/api/Get_Given_Partner_Document_Super_Admin/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 09:00:45] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2026-04-21 09:00:49.243785 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Apr/2026 09:00:49] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\prj_common.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 10:22:57.752187 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 10:22:57.752187 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 10:22:57.752187 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 10:22:57.752187 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 10:22:57.752187 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\Job_Cron.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 10:23:49.754096 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 10:23:49.754096 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 10:23:49.754096 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 10:23:49.754096 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 10:23:49.754096 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 +INFO:werkzeug: * Detected change in 'C:\\Users\\Cherif\\Documents\\myclass.com\\Siteweb\\Elyos_Ftion_Initiale\\Ela_back\\Back_Office_FI\\Job_Cron.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:matplotlib:matplotlib data path: C:\Users\Cherif\Documents\myclass.com\Siteweb\Elyos_Ftion_Continue\Ela_back\Back_Office\venv\Lib\site-packages\matplotlib\mpl-data +DEBUG:matplotlib:CONFIGDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib:interactive is False +DEBUG:matplotlib:platform is win32 +DEBUG:matplotlib:CACHEDIR=C:\Users\Cherif\.matplotlib +DEBUG:matplotlib.font_manager:Using fontManager instance from C:\Users\Cherif\.matplotlib\fontlist-v390.json +INFO:root:2026-04-21 10:27:33.582124 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2026-04-21 10:27:33.583129 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev_fi ++ +INFO:root:2026-04-21 10:27:33.583129 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev_fi') ++ +INFO:root:2026-04-21 10:27:33.583129 : ++ FLASK PORT 5001 ++ +INFO:root:2026-04-21 10:27:33.583129 : ++ LMS_BAS_URL mysy-hosting.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 479-264-725 diff --git a/notes_apprenant_mgt.py b/notes_apprenant_mgt.py index 2137c7b..e292b96 100644 --- a/notes_apprenant_mgt.py +++ b/notes_apprenant_mgt.py @@ -165,7 +165,7 @@ def Update_Evaluation_Type(diction): """ Verification des input acceptés """ - field_list = ['token', '_id', 'code', 'nom', 'description', 'base_authorized_type_evaluation_id'] + field_list = ['token', '_id', 'code', 'nom', 'description', 'base_authorized_type_evaluation_code'] incom_keys = diction.keys() for val in incom_keys: @@ -177,7 +177,7 @@ def Update_Evaluation_Type(diction): """ Verification des champs obligatoires """ - field_list_obligatoire = ['token', '_id', 'base_authorized_type_evaluation_id'] + field_list_obligatoire = ['token', '_id', 'base_authorized_type_evaluation_code'] for val in field_list_obligatoire: if val not in diction: @@ -215,19 +215,19 @@ def Update_Evaluation_Type(diction): """ Verifier la validité de base_authorized_type_evaluation_id """ - is_valide_base_authorized_type_evaluation_id = MYSY_GV.dbname['base_authorized_type_evaluation'].count_documents({'_id':ObjectId(str(diction['base_authorized_type_evaluation_id'])), + is_valide_base_authorized_type_evaluation_code = MYSY_GV.dbname['base_authorized_type_evaluation'].count_documents({'code':str(diction['base_authorized_type_evaluation_code']), 'valide':'1', 'locked':'0', 'partner_owner_recid':'default'}) - if( is_valide_base_authorized_type_evaluation_id != 1): + if( is_valide_base_authorized_type_evaluation_code != 1): mycommon.myprint( str(inspect.stack()[0][3]) + " L'identifiant du base_authorized_type_evaluation est invalide ") return False, " L'identifiant du base_authorized_type_evaluation d'évaluation est invalide " base_authorized_type_evaluation_data = MYSY_GV.dbname[ 'base_authorized_type_evaluation'].find_one( - {'_id': ObjectId(str(diction['base_authorized_type_evaluation_id'])), + {'code': str(diction['base_authorized_type_evaluation_code']), 'valide': '1', 'locked': '0', 'partner_owner_recid': 'default'}) @@ -246,7 +246,9 @@ def Update_Evaluation_Type(diction): data_cle['_id'] = ObjectId(local_id) data_cle['valide'] = "1" data_cle['locked'] = "0" - data_cle['code'] = base_authorized_type_evaluation_data['code'] + + print(" ## data_cle === ", data_cle) + print(" ## new_data === ", new_data) result = MYSY_GV.dbname['type_evaluation'].find_one_and_update( data_cle, @@ -255,6 +257,8 @@ def Update_Evaluation_Type(diction): return_document=ReturnDocument.AFTER ) + print(" ## result === ", result) + if ("_id" not in result.keys()): mycommon.myprint( " Impossible de mettre à jour le type d'évaluation (2) ") diff --git a/prj_common.py b/prj_common.py index 68f7484..705f050 100644 --- a/prj_common.py +++ b/prj_common.py @@ -4265,6 +4265,7 @@ def Get_Connected_User_Partner_Data_From_RecID(user_recid): mydata = MYSY_GV.dbname['partnair_account'].find_one({'recid':str(user_recid), 'is_partner_admin_account':'1', 'active':'1', 'locked':'0'}) if( mydata is None): + #print(" #### QRYY KO = ", {'recid':str(user_recid), 'is_partner_admin_account':'1', 'active':'1', 'locked':'0'}) return False, " Aucun compte partenaire actif pour cet utilisateur" return True,mydata