From 59402149061ddde97928c549be0f86d8bae9ac13 Mon Sep 17 00:00:00 2001 From: cherif Date: Sun, 13 Aug 2023 13:54:11 +0200 Subject: [PATCH] 13/08/23 - 14h --- .idea/workspace.xml | 27 +- Log/log_file.log | 2372 ++++++++++++++++++++++++++++++++++++++++++ Session_Formation.py | 98 ++ class_mgt.py | 21 +- main.py | 11 + prj_common.py | 14 +- 6 files changed, 2519 insertions(+), 24 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c031919..7d268b6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,10 +1,13 @@ - + + + + @@ -426,8 +429,6 @@ - - @@ -451,6 +452,8 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 9ea7894..5ab0d90 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1729237,3 +1729237,2375 @@ INFO:werkzeug:127.0.0.1 - - [12/Aug/2023 12:22:28] "POST /myclass/api/GetAllClas INFO:werkzeug:127.0.0.1 - - [12/Aug/2023 12:22:28] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - INFO:root:2023-08-12 12:22:29.711286 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [12/Aug/2023 12:22:29] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2023-08-13 10:47:12.255859 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 10:47:12.256856 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 10:47:12.256856 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 10:47:12.256856 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 10:47:12.256856 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 10:52:12.449432+02:00 (in 299.993969 seconds) +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 10:47:27.617905 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 10:47:27.617905 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 10:47:27.617905 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 10:47:27.618917 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 10:47:27.618917 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 10:52:27.755956+02:00 (in 299.995016 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 10:47:57.873077 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:57.875129 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:57.877143 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:57] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:58] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:58] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:58.650653 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:58.652931 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:58] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.564624 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.567947 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.573014 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.578347 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.581366 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.589376 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.601711 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.611413 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.619561 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.624915 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.627609 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.635275 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.640735 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.646219 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.654239 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.656253 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.685924 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 10:47:59.690451 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.692646 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 10:47:59.698881 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 10:47:59] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 10:52:12 CEST)" (scheduled at 2023-08-13 10:52:12.449432+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 10:57:12.449432+02:00 (in 299.996069 seconds) +INFO:root:2023-08-13 10:52:12.471890 : dimanche, 13. août 2023 10:52:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 10:57:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 10:52:27 CEST)" (scheduled at 2023-08-13 10:52:27.755956+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 10:57:27.755956+02:00 (in 299.986292 seconds) +INFO:root:2023-08-13 10:52:27.771646 : dimanche, 13. août 2023 10:52:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 10:57:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:02:12.449432+02:00 (in 299.981927 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:02:12 CEST)" (scheduled at 2023-08-13 10:57:12.449432+02:00) +INFO:root:2023-08-13 10:57:12.469487 : dimanche, 13. août 2023 10:57:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:02:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:02:27.755956+02:00 (in 299.991093 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:02:27 CEST)" (scheduled at 2023-08-13 10:57:27.755956+02:00) +INFO:root:2023-08-13 10:57:27.766855 : dimanche, 13. août 2023 10:57:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:02:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:07:12.449432+02:00 (in 299.984773 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:07:12 CEST)" (scheduled at 2023-08-13 11:02:12.449432+02:00) +INFO:root:2023-08-13 11:02:12.466669 : dimanche, 13. août 2023 11:02:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:07:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:07:27.755956+02:00 (in 299.993640 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:07:27 CEST)" (scheduled at 2023-08-13 11:02:27.755956+02:00) +INFO:root:2023-08-13 11:02:27.764320 : dimanche, 13. août 2023 11:02:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:07:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:12:12.449432+02:00 (in 299.988383 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:12:12 CEST)" (scheduled at 2023-08-13 11:07:12.449432+02:00) +INFO:root:2023-08-13 11:07:12.463049 : dimanche, 13. août 2023 11:07:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:12:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:12:27.755956+02:00 (in 299.994677 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:12:27 CEST)" (scheduled at 2023-08-13 11:07:27.755956+02:00) +INFO:root:2023-08-13 11:07:27.764020 : dimanche, 13. août 2023 11:07:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:12:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 11:10:45.396709 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:45] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:10:45.591346 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:10:45.595022 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:45] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:10:45.600023 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:10:45.605066 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:10:45.610044 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:45] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:45] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:45] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:10:45.869119 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:45] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:10:48.313895 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:10:48.316950 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:10:48.320943 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:48] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:10:48] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:11:19.197040 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:11:19.200205 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:11:19.203905 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:11:19] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:11:19] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:11:19] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:11:20.815678 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:11:20] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:17:12.449432+02:00 (in 299.983696 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:17:12 CEST)" (scheduled at 2023-08-13 11:12:12.449432+02:00) +INFO:root:2023-08-13 11:12:12.468570 : dimanche, 13. août 2023 11:12:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:17:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:17:27.755956+02:00 (in 299.988014 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:17:27 CEST)" (scheduled at 2023-08-13 11:12:27.755956+02:00) +INFO:root:2023-08-13 11:12:27.769941 : dimanche, 13. août 2023 11:12:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:17:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:22:12.449432+02:00 (in 299.989583 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:22:12 CEST)" (scheduled at 2023-08-13 11:17:12.449432+02:00) +INFO:root:2023-08-13 11:17:12.461424 : dimanche, 13. août 2023 11:17:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:22:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:22:27.755956+02:00 (in 299.997868 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:22:27 CEST)" (scheduled at 2023-08-13 11:17:27.755956+02:00) +INFO:root:2023-08-13 11:17:27.760085 : dimanche, 13. août 2023 11:17:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:22:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 11:20:42.120850 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:20:42.124122 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:20:42.128238 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:20:42] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:20:42] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:20:42] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:20:43.373318 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:20:44.940899 : GetSpecificPartnerAttestation_Certificat Impossible de recuperer les données de ce template +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:20:44] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:21:08.279077 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:21:08.298855 : Add_Update_SessionFormation - L'étape 'undefined' n'est pas autorisée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:21:08] "POST /myclass/api/Add_Update_SessionFormation/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:27:12.449432+02:00 (in 299.985076 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:27:12 CEST)" (scheduled at 2023-08-13 11:22:12.449432+02:00) +INFO:root:2023-08-13 11:22:12.466868 : dimanche, 13. août 2023 11:22:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:27:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:27:27.755956+02:00 (in 299.989956 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:27:27 CEST)" (scheduled at 2023-08-13 11:22:27.755956+02:00) +INFO:root:2023-08-13 11:22:27.768000 : dimanche, 13. août 2023 11:22:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:27:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 11:22:55.077834 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:22:55.085322 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:22:55.089322 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:22:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:22:55] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:22:55] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:23:42.444740 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:23:42.451215 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:23:42.454472 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:23:42] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:23:42] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:23:42] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:23:59.106380 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:23:59.112073 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:23:59.114777 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:23:59] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:23:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:23:59] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:17.310591 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:17.314092 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:17.319022 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:17] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:17] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:31.963192 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:31] "POST /myclass/api/Add_Update_SessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:32.785569 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:32] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:35.124510 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:35] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:39.661390 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:39.669399 : GetSpecificPartnerAttestation_Certificat Impossible de recuperer les données de ce template +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:39] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:49.116814 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:49.119829 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:49.123838 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:49] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:49] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:49] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:50.702082 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:50] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:54.834245 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:54.838244 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:54.842249 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:54] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:54] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:54] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:56.153865 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:56] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:24:59.329589 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:59.333684 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:24:59.338241 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:59] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:59] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:24:59] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:25:00.664981 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:25:00.672987 : GetSpecificPartnerAttestation_Certificat Impossible de recuperer les données de ce template +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:25:00] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:25:12.912560 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:25:12.915714 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:25:12.918244 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:25:12] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:25:12] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:25:12] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:25:14.423611 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:25:14] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:32:12.449432+02:00 (in 299.996992 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:32:12 CEST)" (scheduled at 2023-08-13 11:27:12.449432+02:00) +INFO:root:2023-08-13 11:27:12.456596 : dimanche, 13. août 2023 11:27:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:32:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:32:27.755956+02:00 (in 299.998772 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:32:27 CEST)" (scheduled at 2023-08-13 11:27:27.755956+02:00) +INFO:root:2023-08-13 11:27:27.760177 : dimanche, 13. août 2023 11:27:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:32:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 11:28:25.209570 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:28:25.215409 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:28:25.218855 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:25] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:25] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:25] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:28:30.569000 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:28:30.582806 : Les données du stagiaire ont été correctement mise à jour +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:30] "POST /myclass/api/UpdateStagiairetoClass/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:28:30.883526 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:28:30.885786 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:30] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:30] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:28:43.251649 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:28:43.262414 : Les données du stagiaire ont été correctement mise à jour +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:43] "POST /myclass/api/UpdateStagiairetoClass/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:28:43.290017 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:28:43.294684 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:43] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:28:43] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:29:37.457863 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:29:37.461887 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:29:37.469342 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:29:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:29:37] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:29:37] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:30:02.395200 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:30:03.574559 : Les données du stagiaire ont été correctement mise à jour +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:30:03] "POST /myclass/api/UpdateStagiairetoClass/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:30:03.600180 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:30:03.604406 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:30:03] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:30:03] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:37:12.449432+02:00 (in 299.989267 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:37:12 CEST)" (scheduled at 2023-08-13 11:32:12.449432+02:00) +INFO:root:2023-08-13 11:32:12.463293 : dimanche, 13. août 2023 11:32:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:37:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:37:27.755956+02:00 (in 299.983264 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:37:27 CEST)" (scheduled at 2023-08-13 11:32:27.755956+02:00) +INFO:root:2023-08-13 11:32:27.774675 : dimanche, 13. août 2023 11:32:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:37:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:42:12.449432+02:00 (in 299.984113 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:42:12 CEST)" (scheduled at 2023-08-13 11:37:12.449432+02:00) +INFO:root:2023-08-13 11:37:12.467798 : dimanche, 13. août 2023 11:37:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:42:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:42:27.755956+02:00 (in 299.991813 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:42:27 CEST)" (scheduled at 2023-08-13 11:37:27.755956+02:00) +INFO:root:2023-08-13 11:37:27.766140 : dimanche, 13. août 2023 11:37:27 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:42:27 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 11:40:08.893415 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 11:40:08.894415 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 11:40:08.894415 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 11:40:08.894415 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 11:40:08.894415 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:45:09.023097+02:00 (in 299.996356 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 11:40:55.565714 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 11:40:55.565714 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 11:40:55.565714 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 11:40:55.565714 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 11:40:55.565714 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:45:55.724268+02:00 (in 299.995000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:47:12.449432+02:00 (in 299.995884 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:47:12 CEST)" (scheduled at 2023-08-13 11:42:12.449432+02:00) +INFO:root:2023-08-13 11:42:12.455816 : dimanche, 13. août 2023 11:42:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:47:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 11:42:53.504346 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 11:42:53.504346 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 11:42:53.504346 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 11:42:53.504346 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 11:42:53.504346 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:47:53.586703+02:00 (in 299.997011 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:52:12.449432+02:00 (in 299.994678 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:52:12 CEST)" (scheduled at 2023-08-13 11:47:12.449432+02:00) +INFO:root:2023-08-13 11:47:12.457755 : dimanche, 13. août 2023 11:47:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:52:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:47:53 CEST)" (scheduled at 2023-08-13 11:47:53.586703+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:52:53.586703+02:00 (in 299.995079 seconds) +INFO:root:2023-08-13 11:47:53.596125 : dimanche, 13. août 2023 11:47:53 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:52:53 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:57:12.449432+02:00 (in 299.991067 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:57:12 CEST)" (scheduled at 2023-08-13 11:52:12.449432+02:00) +INFO:root:2023-08-13 11:52:12.460345 : dimanche, 13. août 2023 11:52:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:57:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 11:57:53.586703+02:00 (in 299.997511 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:57:53 CEST)" (scheduled at 2023-08-13 11:52:53.586703+02:00) +INFO:root:2023-08-13 11:52:53.590731 : dimanche, 13. août 2023 11:52:53 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 11:57:53 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 11:56:10.211810 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:56:10.216499 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:56:10.219953 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:56:10] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:56:10] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:56:10] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:57:02.003813 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:02.006355 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:02.011616 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:02.014861 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:57:02.052286 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:02] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:02] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:57:03.279631 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:03] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:57:06.080845 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:06.083370 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:06.087201 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:06] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:06] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:06] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:02:12.449432+02:00 (in 299.985389 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:02:12 CEST)" (scheduled at 2023-08-13 11:57:12.449432+02:00) +INFO:root:2023-08-13 11:57:12.466043 : dimanche, 13. août 2023 11:57:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:02:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 11:57:16.321979 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:16.324975 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:16.329697 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:16] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:16] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:16] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:57:18.649311 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:18] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 11:57:29.860422 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 11:57:29.864690 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:29] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 11:57:31] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:02:53.586703+02:00 (in 299.994455 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:02:53 CEST)" (scheduled at 2023-08-13 11:57:53.586703+02:00) +INFO:root:2023-08-13 11:57:53.600689 : dimanche, 13. août 2023 11:57:53 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:02:53 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 11:59:13.338540 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 11:59:13.338540 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 11:59:13.338540 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 11:59:13.338540 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 11:59:13.338540 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:04:13.405545+02:00 (in 299.996984 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 11:59:49.461638 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 11:59:49.461638 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 11:59:49.461638 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 11:59:49.461638 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 11:59:49.461638 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:04:49.518992+02:00 (in 299.998000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 12:01:14.642754 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:01:14.646680 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:01:14] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:01:15.175666 : GetAttendeeDetail_perSession - Impossible de recuperer le recid du partenaire (2) +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:01:15] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:07:12.449432+02:00 (in 299.994659 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:07:12 CEST)" (scheduled at 2023-08-13 12:02:12.449432+02:00) +INFO:root:2023-08-13 12:02:12.458252 : dimanche, 13. août 2023 12:02:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:07:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:03:28.911238 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:03:28.912237 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:03:28.912237 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:03:28.912237 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:03:28.912237 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:08:28.963030+02:00 (in 299.997173 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 12:03:43.334944 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:03:43.337299 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:03:43] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:03:43] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:12:12.449432+02:00 (in 299.986997 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:12:12 CEST)" (scheduled at 2023-08-13 12:07:12.449432+02:00) +INFO:root:2023-08-13 12:07:12.466091 : dimanche, 13. août 2023 12:07:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:12:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:08:02.431185 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:02.434472 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:02] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:02.438697 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:02.442697 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:02.447116 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:02] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:03.433278 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:03] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:05.360203 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:05.362257 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:05.365774 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:05] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:05] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:08.531678 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:08.534174 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:08.538915 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:08] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:08] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:08] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:10.101942 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:10] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:21.864220 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:21.867230 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:21] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:21] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:08:28 CEST)" (scheduled at 2023-08-13 12:08:28.963030+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:13:28.963030+02:00 (in 299.989380 seconds) +INFO:root:2023-08-13 12:08:28.976689 : dimanche, 13. août 2023 12:08:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:13:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:08:32.837773 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:32] "POST /myclass/api/Update_Stagiaire_Image/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:42.145132 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:42.148098 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:42] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:42] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:08:46.911601 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:08:46.914721 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:46] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:08:46] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:09:53.679612 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:09:53.682613 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:09:53.686607 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:09:53] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:09:53] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:09:53] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:10:01.819006 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:10:01.822151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:10:01] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:10:01] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:10:08.684151 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:10:08.687151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:10:08] "POST /myclass/api/GetAttendeeDetail_perSession/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:10:08] "POST /myclass/api/getRecodedStagiaireImage_from_front/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:17:12.449432+02:00 (in 299.997821 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:17:12 CEST)" (scheduled at 2023-08-13 12:12:12.449432+02:00) +INFO:root:2023-08-13 12:12:12.453440 : dimanche, 13. août 2023 12:12:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:17:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:18:28.963030+02:00 (in 299.982728 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:18:28 CEST)" (scheduled at 2023-08-13 12:13:28.963030+02:00) +INFO:root:2023-08-13 12:13:28.981911 : dimanche, 13. août 2023 12:13:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:18:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:14:41.642178 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\t
\n\t\t\t\n\t\t\tMysy Training Logo\n\t\t\t\n\t\t
\n\n\t\t
\n\t\t\t

ATTESTION INDIVIDUELLE DE FORMATION

\n\t\t
\n\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tPar la presente, l\'oganisme de formation MySy Dev Compte au Numero de SIRET\n\t\t\t\t\t\t\t
\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t

\n\t\t\t\t\t\t

\n\t\t\t\t\t\tAtteste que part nom1  part 1 a suivi la formation
\n\t\t\t\t\t\t "PRATICIEN EN AROMATHERAPIE INTEGRATIVE"
\n\t\t\t\t\t\trealisé par le formateur EFAI\n\t\t\t\t\t\t

\n\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\tCette formation a eu lieu du 02/11/2023 au 04/02/2024 en ligne.\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t
\n\t\t\t\t\t\n\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tContenu de la formation :
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\n\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tFait à le 13/08/2023\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tPour l\'organisme de formation
\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\n\n\t\t\t\t\t\t
\n\n\t\t\t\t\t
\n\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\n\t\t\t
\n\n\t\t
\n\t\t\n\n\t\n\n\n\n' + dest = <_io.BufferedRandom name='./temp_directAttestation_1691921681689pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/ecole_aroma/img/logo_ecole_arome_vert.jpg', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/ecole_aroma/img/logo_ecole_arome_vert.jpg', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 60.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/ecole_aroma/img/logo_ecole_arome_vert.jpg with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/ecole_aroma/img/logo_ecole_arome_vert.jpg +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/perso/mysy_cachet.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/perso/mysy_cachet.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 210.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/perso/mysy_cachet.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/perso/mysy_cachet.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'gAMA' 41 4 +DEBUG:PIL.PngImagePlugin:STREAM b'pHYs' 57 9 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 24636 +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'gAMA' 41 4 +DEBUG:PIL.PngImagePlugin:STREAM b'pHYs' 57 9 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 24636 +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:14:42] "GET /myclass/api/PrintAttendeeCertification/FIcZHJ9ncmEIXyiG-pONLFzX1zmlOaMBpg/AM02/billardman1@yahoo.fr/praticien-en-aromatherapie-integrative-45d HTTP/1.1" 200 - +INFO:root:2023-08-13 12:15:00.942929 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:15:00.944947 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:00] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:00] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:15:01.970804 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:01] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:15:02.023077 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:02] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:15:37.069130 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:15:37.071432 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:15:37.074604 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:37] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:37] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:15:55.522126 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:15:55.524932 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:15:55.529081 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:55] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:15:55] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:22:12.449432+02:00 (in 299.988113 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:22:12 CEST)" (scheduled at 2023-08-13 12:17:12.449432+02:00) +INFO:root:2023-08-13 12:17:12.470471 : dimanche, 13. août 2023 12:17:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:22:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:23:28.963030+02:00 (in 299.991664 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:23:28 CEST)" (scheduled at 2023-08-13 12:18:28.963030+02:00) +INFO:root:2023-08-13 12:18:28.972368 : dimanche, 13. août 2023 12:18:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:23:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:27:12.449432+02:00 (in 299.980754 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:27:12 CEST)" (scheduled at 2023-08-13 12:22:12.449432+02:00) +INFO:root:2023-08-13 12:22:12.471712 : dimanche, 13. août 2023 12:22:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:27:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:28:28.963030+02:00 (in 299.987256 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:28:28 CEST)" (scheduled at 2023-08-13 12:23:28.963030+02:00) +INFO:root:2023-08-13 12:23:28.977559 : dimanche, 13. août 2023 12:23:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:28:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:24:39.885424 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:24:39.888754 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:39] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:24:39.893216 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:24:39.896977 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:24:39.902967 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:39] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:39] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:39] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:24:40.539109 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:40] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:24:42.186422 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:24:42.190454 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:24:42.193667 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:42] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:42] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:24:42] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:32:12.449432+02:00 (in 299.989902 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:32:12 CEST)" (scheduled at 2023-08-13 12:27:12.449432+02:00) +INFO:root:2023-08-13 12:27:12.468141 : dimanche, 13. août 2023 12:27:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:32:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:33:28.963030+02:00 (in 299.985443 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:33:28 CEST)" (scheduled at 2023-08-13 12:28:28.963030+02:00) +INFO:root:2023-08-13 12:28:28.978599 : dimanche, 13. août 2023 12:28:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:33:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:29:16.979621 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:29:16.985468 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:29:16.992602 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:29:16] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:29:17] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:29:17] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:32:05.826000 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:32:05.832192 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:32:05.837186 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:05] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:05] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:37:12.449432+02:00 (in 299.986858 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:37:12 CEST)" (scheduled at 2023-08-13 12:32:12.449432+02:00) +INFO:root:2023-08-13 12:32:12.466415 : dimanche, 13. août 2023 12:32:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:37:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:32:43.464419 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:32:43.470948 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:32:43.476944 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:43] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:43] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:32:44.393111 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:32:44.402541 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:32:44.408738 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:44] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:32:44] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:38:28.963030+02:00 (in 299.998771 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:38:28 CEST)" (scheduled at 2023-08-13 12:33:28.963030+02:00) +INFO:root:2023-08-13 12:33:28.966530 : dimanche, 13. août 2023 12:33:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:38:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:33:33.912473 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:33:33.916489 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:33:33.921480 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:33:33] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:33:33] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:33:33] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:35:10.856604 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:35:10] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 12:35:10.894654 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:35:10] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:42:12.449432+02:00 (in 299.994892 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:42:12 CEST)" (scheduled at 2023-08-13 12:37:12.449432+02:00) +INFO:root:2023-08-13 12:37:12.457545 : dimanche, 13. août 2023 12:37:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:42:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:43:28.963030+02:00 (in 299.988356 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:43:28 CEST)" (scheduled at 2023-08-13 12:38:28.963030+02:00) +INFO:root:2023-08-13 12:38:28.976682 : dimanche, 13. août 2023 12:38:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:43:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:47:12.449432+02:00 (in 299.990416 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:47:12 CEST)" (scheduled at 2023-08-13 12:42:12.449432+02:00) +INFO:root:2023-08-13 12:42:12.469169 : dimanche, 13. août 2023 12:42:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:47:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:48:28.963030+02:00 (in 299.986767 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:48:28 CEST)" (scheduled at 2023-08-13 12:43:28.963030+02:00) +INFO:root:2023-08-13 12:43:28.978277 : dimanche, 13. août 2023 12:43:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:48:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 12:45:56.500584 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:45:56.506553 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 12:45:56.510848 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:45:56] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:45:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 12:45:56] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:52:12.449432+02:00 (in 299.981820 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:52:12 CEST)" (scheduled at 2023-08-13 12:47:12.449432+02:00) +INFO:root:2023-08-13 12:47:12.476177 : dimanche, 13. août 2023 12:47:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:52:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:53:28.963030+02:00 (in 299.993612 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:53:28 CEST)" (scheduled at 2023-08-13 12:48:28.963030+02:00) +INFO:root:2023-08-13 12:48:28.971921 : dimanche, 13. août 2023 12:48:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:53:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:49:56.900337 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:49:56.900337 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:49:56.900337 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:49:56.900337 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:49:56.900337 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:54:56.986472+02:00 (in 299.995475 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:50:42.480985 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:50:42.480985 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:50:42.480985 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:50:42.480985 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:50:42.480985 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:55:42.547091+02:00 (in 299.996019 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:51:05.304780 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:51:05.304780 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:51:05.304780 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:51:05.304780 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:51:05.304780 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:56:05.388997+02:00 (in 299.995998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:57:12.449432+02:00 (in 299.884058 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:57:12 CEST)" (scheduled at 2023-08-13 12:52:12.449432+02:00) +INFO:root:2023-08-13 12:52:12.759116 : dimanche, 13. août 2023 12:52:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:57:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:52:39.913802 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:52:39.913802 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:52:39.913802 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:52:39.913802 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:52:39.913802 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:57:39.979623+02:00 (in 299.996002 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:54:22.931657 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:54:22.931657 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:54:22.931657 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:54:22.931657 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:54:22.931657 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:59:22.998450+02:00 (in 299.998000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 12:54:49.382898 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 12:54:49.382898 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 12:54:49.382898 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 12:54:49.382898 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 12:54:49.383904 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 12:59:49.467874+02:00 (in 299.996986 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:02:12.449432+02:00 (in 299.987206 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:02:12 CEST)" (scheduled at 2023-08-13 12:57:12.449432+02:00) +INFO:root:2023-08-13 12:57:12.467201 : dimanche, 13. août 2023 12:57:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:02:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 12:59:49 CEST)" (scheduled at 2023-08-13 12:59:49.467874+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:04:49.467874+02:00 (in 299.995945 seconds) +INFO:root:2023-08-13 12:59:49.476112 : dimanche, 13. août 2023 12:59:49 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:04:49 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:07:12.449432+02:00 (in 299.986334 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:07:12 CEST)" (scheduled at 2023-08-13 13:02:12.449432+02:00) +INFO:root:2023-08-13 13:02:12.472280 : dimanche, 13. août 2023 01:02:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:07:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:09:49.467874+02:00 (in 299.996624 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:09:49 CEST)" (scheduled at 2023-08-13 13:04:49.467874+02:00) +INFO:root:2023-08-13 13:04:49.473246 : dimanche, 13. août 2023 01:04:49 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:09:49 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:05:28.621462 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:05:28.621462 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:05:28.621462 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:05:28.621462 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:05:28.621462 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:10:28.676993+02:00 (in 299.997379 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:05:46.952402 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:05:46.952402 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:05:46.952402 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:05:46.952402 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:05:46.952402 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:10:47.005264+02:00 (in 299.997005 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:06:28.385487 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:06:28.385487 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:06:28.386487 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:06:28.386487 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:06:28.386487 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:11:28.443420+02:00 (in 299.996985 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:12:12.449432+02:00 (in 299.987427 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:12:12 CEST)" (scheduled at 2023-08-13 13:07:12.449432+02:00) +INFO:root:2023-08-13 13:07:12.464391 : dimanche, 13. août 2023 01:07:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:12:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3180, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2023-08-13 13:09:39.965912 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:09:39.965912 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:09:39.965912 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:09:39.966911 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:09:39.966911 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:14:40.022435+02:00 (in 299.998005 seconds) +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:09:48.817073 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:09:48.817073 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:09:48.818068 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:09:48.818068 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:09:48.818068 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:14:48.874091+02:00 (in 299.997064 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:10:12.920658 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:10:12.920658 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:10:12.920658 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:10:12.920658 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:10:12.920658 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:15:12.974400+02:00 (in 299.999000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 13:10:35.244333 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:10:35.247350 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:10:35.249344 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:10:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:10:35] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:10:35] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:11:51.606434 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:11:51.609968 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:11:51.614528 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:11:51] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:11:51] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:11:51] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:13:05.234483 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:13:05.237480 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:13:05.240481 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:13:05] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:13:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:13:05] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:14:18.942886 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:14:18.945886 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:14:18.948886 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:14:18] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:14:18] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:14:19.790931 : GetAllValideSessionPartner_List - Le champ 'external_code' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:14:19] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:14:33.199679 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:14:33.203693 : GetAllValideSessionPartner_List - Le champ 'code_session' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:14:33] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:14:40 CEST)" (scheduled at 2023-08-13 13:14:40.022435+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:19:40.022435+02:00 (in 299.982342 seconds) +INFO:root:2023-08-13 13:14:40.070610 : dimanche, 13. août 2023 01:14:40 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:19:40 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3194, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:15:12 CEST)" (scheduled at 2023-08-13 13:15:12.974400+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:20:12.974400+02:00 (in 299.995253 seconds) +INFO:root:2023-08-13 13:15:12.982185 : dimanche, 13. août 2023 01:15:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:20:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-08-13 13:15:40.779386 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:15:40.787385 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:15:40.791386 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:40] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:15:40.798387 : GetAllValideSessionPartner_List - Le champ 'code_session' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:40] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:15:40.809423 : get_partner_class - get_partner_class : Le champ 'code_session' n'existe pas, Creation formation annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:40] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:15:59.408926 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:15:59.413056 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:15:59.418074 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:15:59.423124 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:15:59.434471 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:15:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:16:00.272413 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:00] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:16:05.029542 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:16:05.034227 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:16:05.038596 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:05] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:05] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:16:14.878399 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:16:14.881421 : GetAllValideSessionPartner_List - Le champ 'code_session' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:14] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:16:44.696670 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:16:44.700213 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:16:44.703587 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:44] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:16:44.714521 : get_partner_class - get_partner_class : Le champ 'code_session' n'existe pas, Creation formation annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:16:44] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:17:00.301606 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:17:00] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:17:06.661970 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:17:06] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:17:11.589965 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:17:11] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:24:40.022435+02:00 (in 299.990130 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:24:40 CEST)" (scheduled at 2023-08-13 13:19:40.022435+02:00) +INFO:root:2023-08-13 13:19:40.035301 : dimanche, 13. août 2023 01:19:40 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:24:40 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3194, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:25:12.974400+02:00 (in 299.994500 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:25:12 CEST)" (scheduled at 2023-08-13 13:20:12.974400+02:00) +INFO:root:2023-08-13 13:20:12.981896 : dimanche, 13. août 2023 01:20:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:25:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:21:04.494946 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:21:04.495951 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:21:04.495951 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:21:04.495951 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:21:04.495951 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:26:04.555496+02:00 (in 299.995933 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 13:21:12.918542 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:12] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:21:31.036188 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:21:31.097401 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:31] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:21:32.038973 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:21:32.044154 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:21:32.046975 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:32] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:32] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:21:41.590954 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:21:41] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:29:40.022435+02:00 (in 299.987853 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:29:40 CEST)" (scheduled at 2023-08-13 13:24:40.022435+02:00) +INFO:root:2023-08-13 13:24:40.036200 : dimanche, 13. août 2023 01:24:40 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:29:40 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3194, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\class_mgt.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2023-08-13 13:27:08.513186 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:27:08.513186 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:27:08.513186 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:27:08.513186 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:27:08.513186 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:32:08.568202+02:00 (in 299.997997 seconds) +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:27:19.006927 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:27:19.006927 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:27:19.007930 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:27:19.007930 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:27:19.007930 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:32:19.063452+02:00 (in 299.996985 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 13:28:40.031067 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:28:40] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:28:54.428898 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:28:54.973954 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:28:54] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:29:02.431011 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:29:02] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:29:09.399719 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:29:09.402835 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:29:09] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:29:16.189770 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:29:16.193783 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:29:16] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:29:28.631147 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:29:28.636678 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:29:28.641694 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:29:28] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:29:28.647703 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:29:28] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:29:28] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:28.396202 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:28.400202 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:28.404196 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:28] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:28] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:28.414556 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:28] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:32.920825 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:32.923586 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:32] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:34.649604 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:34.652594 : GetAllValideSessionPartner_List_filter_like - Le champ 'title' n'est pas autorisé, Creation partenaire annulée +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:34] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:44.350734 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:44.353741 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:44.357868 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:44] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:44.363772 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:44] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:44.380541 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:44] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:45.470531 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:45] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:46.664125 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:46.669247 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:46.672467 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:46] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:46] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:46] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:30:53.392548 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:30:53.419234 : GetAllValideSessionPartner_List_filter_like -list index out of range - ERRORRRR AT Line : 758 +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:30:53] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:32:08 CEST)" (scheduled at 2023-08-13 13:32:08.568202+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:37:08.568202+02:00 (in 299.999124 seconds) +INFO:root:2023-08-13 13:32:08.573710 : dimanche, 13. août 2023 01:32:08 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:37:08 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:32:19 CEST)" (scheduled at 2023-08-13 13:32:19.063452+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:37:19.063452+02:00 (in 299.990400 seconds) +INFO:root:2023-08-13 13:32:19.075564 : dimanche, 13. août 2023 01:32:19 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:37:19 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:42:08.568202+02:00 (in 299.995349 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:42:08 CEST)" (scheduled at 2023-08-13 13:37:08.568202+02:00) +INFO:root:2023-08-13 13:37:08.574848 : dimanche, 13. août 2023 01:37:08 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:42:08 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:42:19.063452+02:00 (in 299.986213 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:42:19 CEST)" (scheduled at 2023-08-13 13:37:19.063452+02:00) +INFO:root:2023-08-13 13:37:19.079239 : dimanche, 13. août 2023 01:37:19 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:42:19 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:47:08.568202+02:00 (in 299.990237 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:47:08 CEST)" (scheduled at 2023-08-13 13:42:08.568202+02:00) +INFO:root:2023-08-13 13:42:08.579967 : dimanche, 13. août 2023 01:42:08 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:47:08 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:47:19.063452+02:00 (in 299.983991 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:47:19 CEST)" (scheduled at 2023-08-13 13:42:19.063452+02:00) +INFO:root:2023-08-13 13:42:19.081457 : dimanche, 13. août 2023 01:42:19 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:47:19 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:52:08.568202+02:00 (in 299.980509 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:52:08 CEST)" (scheduled at 2023-08-13 13:47:08.568202+02:00) +INFO:root:2023-08-13 13:47:08.589673 : dimanche, 13. août 2023 01:47:08 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:52:08 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:47:31.581281 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:47:31.581281 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:47:31.581281 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:47:31.581281 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:47:31.581281 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:52:31.642316+02:00 (in 299.996998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 13:47:37.715695 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-13 13:47:38.383074 : GetAllValideSessionPartner_List_filter_like -list index out of range - ERRORRRR AT Line : 759 +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:47:38] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:48:41.535860 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:48:41.535860 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:48:41.536847 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:48:41.536847 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:48:41.536847 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:53:41.608623+02:00 (in 299.997994 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:49:13.334401 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:49:13.334401 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:49:13.334401 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:49:13.334401 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:49:13.334401 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:54:13.413826+02:00 (in 299.997468 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 13:49:15.420791 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:49:15] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:49:37.779770 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:49:37] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-13 13:50:02.460802 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-13 13:50:02.460802 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-13 13:50:02.460802 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-13 13:50:02.460802 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-13 13:50:02.460802 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:55:02.514991+02:00 (in 299.997019 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 561-600-605 +INFO:root:2023-08-13 13:50:02.553675 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:02] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:09.436767 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:09] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:13.116532 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:13] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:34.261095 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:34] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:38.550154 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:38] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:42.260825 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:42] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:44.837848 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:44] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +INFO:root:2023-08-13 13:50:49.494654 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [13/Aug/2023 13:50:49] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-08-13 13:57:08.568202+02:00 (in 299.991059 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:57:08 CEST)" (scheduled at 2023-08-13 13:52:08.568202+02:00) +INFO:root:2023-08-13 13:52:08.579143 : dimanche, 13. août 2023 01:52:08 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-08-13 13:57:08 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3191, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added diff --git a/Session_Formation.py b/Session_Formation.py index 3b080ad..b8b3b7f 100644 --- a/Session_Formation.py +++ b/Session_Formation.py @@ -674,6 +674,104 @@ def GetAllValideSessionPartner_List(diction): return False, "Impossible de recuperer la liste des sessions de formation valides et actives." +""" +Recuperation de la liste avec des filter du type like +""" +def GetAllValideSessionPartner_List_filter_like(diction): + try: + + field_list = ['token','class_title', 'code_session'] + incom_keys = diction.keys() + for val in incom_keys: + if val not in field_list: + mycommon.myprint(str(inspect.stack()[0][ + 3]) + " - Le champ '" + val + "' n'est pas autorisé, Creation partenaire annulée") + return False, " Impossible de recuperer la liste des session de formation" + + """ + Verification de la liste des champs obligatoires + """ + field_list_obligatoire = ['token', ] + for val in field_list_obligatoire: + if val not in diction: + mycommon.myprint( + str(inspect.stack()[0][3]) + " - : La valeur '" + val + "' n'est pas presente dans liste ") + return False, "Impossible de recuperer la liste des session de formation" + + # Recuperation du recid du partner + mydata = {} + + token = "" + if ("token" in diction.keys()): + if diction['token']: + token = diction['token'] + + local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + return local_status, my_partner + + + filt_class_title = {} + if ("class_title" in diction.keys()): + filt_class_title = {'title': {'$regex': str(diction['class_title']),"$options": "i"}} + + + filt_code_session = {} + if ("code_session" in diction.keys()): + filt_code_session = {'code_session': {'$regex': str(diction['code_session']), "$options": "i"}} + + coll_session = MYSY_GV.dbname['session_formation'] + + query = [{'$match':filt_code_session }, + {'$lookup': + { + 'from': 'myclass', + 'localField': 'class_internal_url', + 'foreignField': 'internal_url', + 'pipeline': [{'$match': filt_class_title}, {'$project': {'title': 1, 'domaine':1, + 'duration':1, 'duration_unit':1}}], + 'as': 'myclass_collection' + } + } + ] + + print("#### GetAllValideSessionPartner_List_filter_likequery = ", query) + RetObject = [] + cpt = 1 + for retVal in MYSY_GV.dbname['session_formation'].aggregate(query): + if( 'myclass_collection' in retVal.keys() and len(retVal['myclass_collection']) > 0 ): + val = {} + val['id'] = str(cpt) + cpt = cpt + 1 + val['class_internal_url'] = retVal['class_internal_url'] + val['code_session'] = retVal['code_session'] + val['date_debut'] = retVal['date_debut'][0:10] + val['date_fin'] = retVal['date_fin'][0:10] + val['date_debut_inscription'] = retVal['date_debut_inscription'][0:10] + val['date_fin_inscription'] = retVal['date_fin_inscription'][0:10] + + val['distantiel'] = retVal['distantiel'] + val['formateur'] = retVal['formateur'] + val['nb_participant'] = retVal['nb_participant'] + val['presentiel'] = retVal['presentiel'] + val['prix_session'] = retVal['prix_session'] + + val['title'] = retVal['myclass_collection'][0]['title'] + val['domaine'] = retVal['myclass_collection'][0]['domaine'] + val['duration'] = retVal['myclass_collection'][0]['duration'] + val['duration_unit'] = retVal['myclass_collection'][0]['duration_unit'] + + + RetObject.append(mycommon.JSONEncoder().encode(val)) + + return True, RetObject + + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno)) + return False, "Impossible de recuperer la liste des sessions de formation valides et actives." + """ diff --git a/class_mgt.py b/class_mgt.py index 4140764..92b2b69 100644 --- a/class_mgt.py +++ b/class_mgt.py @@ -1775,7 +1775,7 @@ def get_class(diction): filt_title = {} if ("title" in diction.keys()): - filt_title = {'title': {'$regex': str(diction['title'])}} + filt_title = {'title': {'$regex': str(diction['title']), "$options": "i"}} print(" #### avant requete get partner_owner_recid laa ="+str(user_recid)+ @@ -2204,15 +2204,16 @@ def get_partner_class(diction): filt_external_code= {} if ("external_code" in diction.keys()): filt_external_code = {'external_code':str(diction['external_code'])} + #print(" GRRRRRRRRRRRRR "+str(filt_external_code)) filt_title = {} if ("title" in diction.keys()): - filt_title = {'title': {'$regex': str(diction['title'])}} + filt_title = {'title': {'$regex': str(diction['title']), "$options": "i"}} filt_internal_url = {} if ("internal_url" in diction.keys()): - filt_internal_url = {'internal_url': {'$regex': str(diction['internal_url'])}} + filt_internal_url = {'internal_url': {'$regex': str(diction['internal_url']), "$options": "i"}} #print(" filt_internal_url GRRRRRRRRRRRRRRRRRRRRrr "+str(filt_internal_url)) @@ -2361,16 +2362,16 @@ def find_partner_class_like(diction): RetObject = [] filt_external_code = {} if ("external_code" in diction.keys()): - filt_external_code = {'external_code':{'$regex': str(diction['external_code'])}} + filt_external_code = {'external_code':{'$regex': str(diction['external_code']), "$options": "i"}} # print(" GRRRRRRRRRRRRR "+str(filt_external_code)) filt_title = {} if ("title" in diction.keys()): - filt_title = {'title': {'$regex': str(diction['title'])}} + filt_title = {'title': {'$regex': str(diction['title']), "$options": "i"}} filt_internal_url = {} if ("internal_url" in diction.keys()): - filt_internal_url = {'internal_url': {'$regex': str(diction['internal_url'])}} + filt_internal_url = {'internal_url': {'$regex': str(diction['internal_url']), "$options": "i"}} # print(" filt_internal_url GRRRRRRRRRRRRRRRRRRRRrr "+str(filt_internal_url)) print( @@ -2524,16 +2525,16 @@ def get_partner_class_external_code(diction): RetObject = [] filt_external_code = {} if ("external_code" in diction.keys()): - filt_external_code = {'external_code': str(diction['external_code'])} + filt_external_code = {'external_code': str(diction['external_code']), "$options": "i"} # print(" GRRRRRRRRRRRRR "+str(filt_external_code)) filt_title = {} if ("title" in diction.keys()): - filt_title = {'title': {'$regex': str(diction['title'])}} + filt_title = {'title': {'$regex': str(diction['title']), "$options": "i"}} filt_internal_url = {} if ("internal_url" in diction.keys()): - filt_internal_url = {'internal_url': {'$regex': str(diction['internal_url'])}} + filt_internal_url = {'internal_url': {'$regex': str(diction['internal_url']), "$options": "i"}} # print(" filt_internal_url GRRRRRRRRRRRRRRRRRRRRrr "+str(filt_internal_url)) print( @@ -3308,7 +3309,7 @@ def get_associated_class_of_partnair(diction): filt_title = {} if ("title" in diction.keys()): - filt_title = {'title': {'$regex': str(diction['title'])}} + filt_title = {'title': {'$regex': str(diction['title']), "$options": "i"}} print(" #### avant requete get partner_owner_recid laa ="+str(partner_recid)+ diff --git a/main.py b/main.py index afb3a83..985b112 100644 --- a/main.py +++ b/main.py @@ -1964,6 +1964,17 @@ def GetAllValideSessionPartner_List(): localStatus, message= SF.GetAllValideSessionPartner_List(payload) return jsonify(status=localStatus, message=message ) +""" +Cette API recupere toutes les sessions de formation d'un partneaire avec des filtres de type like +""" +@app.route('/myclass/api/GetAllValideSessionPartner_List_filter_like/', methods=['POST','GET']) +@crossdomain(origin='*') +def GetAllValideSessionPartner_List_filter_like(): + # On recupere le corps (payload) de la requete + payload = mycommon.strip_dictionary (request.form.to_dict()) + print(" ### GetAllValideSessionPartner_List_filter_like : payload = ",str(payload)) + localStatus, message= SF.GetAllValideSessionPartner_List_filter_like(payload) + return jsonify(status=localStatus, message=message ) """ diff --git a/prj_common.py b/prj_common.py index 328859f..fed139b 100644 --- a/prj_common.py +++ b/prj_common.py @@ -2849,7 +2849,7 @@ puis retourne toutes les informations relatif au couple (personne / session form """ def GetAttendeeDetail_perSession(diction): try: - field_list_obligatoire = ['session_id', 'token', 'attendee_email'] + field_list_obligatoire = ['session_id', 'token', 'attendee_email', 'internal_url'] for val in field_list_obligatoire: if val not in diction: @@ -2877,9 +2877,19 @@ def GetAttendeeDetail_perSession(diction): RetObject = [] + qry = {'session_id':str(diction['session_id']),'email':str(diction['attendee_email']), + 'class_internal_url':str(diction['internal_url']),} + + print(" ici qry = ",qry) # Recuperation des infos de la formation local_Insc_retval = MYSY_GV.dbname['inscription'].find_one({'session_id':str(diction['session_id']), - 'email':str(diction['attendee_email'])}) + 'email':str(diction['attendee_email']), + 'class_internal_url':str(diction['internal_url']),}) + + if( local_Insc_retval is None): + myprint(str(inspect.stack()[0][3]) + " - Impossible de recuperer le recid du partenaire (2)") + return False, " Les informations d'identifier la session (2) " + my_retrun_dict = {} if ("session_id" in local_Insc_retval.keys()):