diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ea33e86..24daafe 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,10 +1,14 @@
-
+
+
+
+
+
@@ -68,13 +72,6 @@
1680804787304
-
- 1680858757338
-
-
-
- 1680858757338
-
1681138622687
@@ -411,7 +408,14 @@
1690313186731
-
+
+ 1690405587653
+
+
+
+ 1690405587654
+
+
@@ -426,7 +430,6 @@
-
@@ -451,6 +454,7 @@
-
+
+
\ No newline at end of file
diff --git a/GlobalVariable.py b/GlobalVariable.py
index 22502ec..526ee3b 100644
--- a/GlobalVariable.py
+++ b/GlobalVariable.py
@@ -264,6 +264,12 @@ Nombre maximum de participants importable par csv
"""
MAX_PARTICIPANT_BY_CSV = 50
+"""
+Nombre maximum de clients de partner importable par csv
+"""
+MAX_PARTNER_CLIENT_BY_CSV = 100
+
+
"""
Stripe : Nom des produits et prix et la clé de config
diff --git a/Inscription_mgt.py b/Inscription_mgt.py
index b879d0b..bbfd9e1 100644
--- a/Inscription_mgt.py
+++ b/Inscription_mgt.py
@@ -1492,6 +1492,7 @@ def AddStagiairetoClass_mass(file=None, Folder=None, diction=None):
status, saved_file = mycommon.Upload_Save_CSV_File(file, Folder)
if (status == False):
+ mycommon.myprint("Impossible de recuperer correctement le fichier à importer")
return False, "Impossible d'importer la liste des participants, le nom du fichier est incorrect "
#" Lecture du fichier "
diff --git a/Log/log_file.log b/Log/log_file.log
index c3e9dae..f70df2b 100644
--- a/Log/log_file.log
+++ b/Log/log_file.log
@@ -1678105,3 +1678105,2793 @@ 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-07-26 23:11:21.857212+02:00 (in 299.987395 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-26 23:11:21 CEST)" (scheduled at 2023-07-26 23:06:21.857212+02:00)
+INFO:root:2023-07-26 23:06:21.871820 : mercredi, 26. juillet 2023 11:06:21 : 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-07-26 23:11:21 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 3127, 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: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-07-27 09:27:04.853753 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 09:27:04.853753 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 09:27:04.854794 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 09:27:04.854794 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 09:27:04.854794 : ++ 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-07-27 09:32:04.962603+02:00 (in 299.996904 seconds)
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-27 09:27:20.863428 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 09:27:20.863428 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 09:27:20.863428 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 09:27:20.863428 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 09:27:20.863428 : ++ 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-07-27 09:32:20.981675+02:00 (in 299.994912 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 09:27:24.661384 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:24.662378 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:24.663374 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:24] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:24] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:24] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:25.001581 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:25.003566 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:25] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:26.006245 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.007256 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.008258 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.009260 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.010603 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.016197 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:26.346800 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.347799 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.347799 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.349795 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.352800 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:26.359456 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:26.674859 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.675880 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.676966 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.677498 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.678536 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:26.680532 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:26] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:26.999435 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:27.000983 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:50.954471 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:50.955959 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:50.958083 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:50] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:51] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:51] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:51.943884 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:51.946884 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.761568 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:52.765019 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.769459 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.774192 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.780671 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:52.785537 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.790768 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:52.795182 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.802015 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:52.806547 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.811823 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.817067 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.821756 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.828409 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.831906 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:52.836887 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.842304 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.848910 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:27:52.850978 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:27:52.854594 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:27:52] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:05.958746 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:05] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:06.143333 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:28:06.146448 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:06] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:06.151447 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:28:06.155202 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:28:06.159080 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:06] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:06] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:06] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:06.392578 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:06] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:28.050383 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:28:28.052373 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:28] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:28] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:36.155411 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:28:36.436371 : external_code = MYSY_Test_AP ==> PRATICIEN EN AROMATHERAPIE INTEGRATIVE
+INFO:root:2023-07-27 09:28:36.971634 : La formation indexée (champ title) =64a58d3f7420e5ba1bd2f655
+INFO:root:2023-07-27 09:28:36.971634 : 1 ont été indexes => title
+INFO:root:2023-07-27 09:28:38.264838 : ela_index_class_key_word 3 mot(s) clé(s) ont été indexés pour la formation MYSY_Test_AP
+INFO:root:2023-07-27 09:28:38.376058 : external_code = MYSY_Test_OP ==> PRATICIEN EN OLFACTOTHERAPIE
+INFO:root:2023-07-27 09:28:38.673980 : La formation indexée (champ title) =64a58d447420e5ba1bd2f683
+INFO:root:2023-07-27 09:28:38.673980 : 1 ont été indexes => title
+INFO:root:2023-07-27 09:28:38.949291 : ela_index_class_key_word 2 mot(s) clé(s) ont été indexés pour la formation MYSY_Test_OP
+INFO:root:2023-07-27 09:28:39.052091 : external_code = MYSY_Test_AR ==> PRATICIEN EN AROMATHERAPIE INTEGRATIVE
+INFO:root:2023-07-27 09:28:39.382899 : La formation indexée (champ title) =64a58d497420e5ba1bd2f6a9
+INFO:root:2023-07-27 09:28:39.382899 : 1 ont été indexes => title
+INFO:root:2023-07-27 09:28:39.661718 : ela_index_class_key_word 3 mot(s) clé(s) ont été indexés pour la formation MYSY_Test_AR
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:39] "POST /myclass/api/add_class_mass/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:44.715052 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:28:44.781410 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:28:44] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:29:06.965943 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:29:06] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 09:29:08.484096 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:29:08.488937 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 09:29:08.493351 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:29:08] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:29:08] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:29:08] "POST /myclass/api/GetPartnerAttestation_Certificat/ 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-07-27 09:32:04 CEST)" (scheduled at 2023-07-27 09:32:04.962603+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 09:37:04.962603+02:00 (in 299.994248 seconds)
+INFO:root:2023-07-27 09:32:04.975355 : jeudi, 27. juillet 2023 09:32:04 : 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-07-27 09:37:04 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 3127, 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-07-27 09:32:20 CEST)" (scheduled at 2023-07-27 09:32:20.981675+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 09:37:20.981675+02:00 (in 299.994970 seconds)
+INFO:root:2023-07-27 09:32:20.990777 : jeudi, 27. juillet 2023 09:32:20 : 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-07-27 09:37:20 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 3127, 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-07-27 09:42:04.962603+02:00 (in 299.993922 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:42:04 CEST)" (scheduled at 2023-07-27 09:37:04.962603+02:00)
+INFO:root:2023-07-27 09:37:04.970818 : jeudi, 27. juillet 2023 09:37:04 : 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-07-27 09:42:04 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 3127, 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-07-27 09:42:20.981675+02:00 (in 299.986076 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:42:20 CEST)" (scheduled at 2023-07-27 09:37:20.981675+02:00)
+INFO:root:2023-07-27 09:37:20.997906 : jeudi, 27. juillet 2023 09:37:20 : 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-07-27 09:42:20 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 3127, 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-07-27 09:47:04.962603+02:00 (in 299.984608 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:47:04 CEST)" (scheduled at 2023-07-27 09:42:04.962603+02:00)
+INFO:root:2023-07-27 09:42:04.979805 : jeudi, 27. juillet 2023 09:42:04 : 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-07-27 09:47:04 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 3127, 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-07-27 09:47:20.981675+02:00 (in 299.992771 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:47:20 CEST)" (scheduled at 2023-07-27 09:42:20.981675+02:00)
+INFO:root:2023-07-27 09:42:20.990910 : jeudi, 27. juillet 2023 09:42:20 : 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-07-27 09:47:20 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 3127, 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-07-27 09:52:04.962603+02:00 (in 299.984762 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:52:04 CEST)" (scheduled at 2023-07-27 09:47:04.962603+02:00)
+INFO:root:2023-07-27 09:47:04.980685 : jeudi, 27. juillet 2023 09:47:04 : 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-07-27 09:52:04 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 3127, 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-07-27 09:52:20.981675+02:00 (in 299.989405 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:52:20 CEST)" (scheduled at 2023-07-27 09:47:20.981675+02:00)
+INFO:root:2023-07-27 09:47:20.996292 : jeudi, 27. juillet 2023 09:47:20 : 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-07-27 09:52:20 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 3127, 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-07-27 09:51:04.381728 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:51:04] "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-07-27 09:57:04.962603+02:00 (in 299.993421 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:57:04 CEST)" (scheduled at 2023-07-27 09:52:04.962603+02:00)
+INFO:root:2023-07-27 09:52:05.268348 : jeudi, 27. juillet 2023 09:52:04 : 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-07-27 09:57:04 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 3127, 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-07-27 09:57:20.981675+02:00 (in 299.988299 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 09:57:20 CEST)" (scheduled at 2023-07-27 09:52:20.981675+02:00)
+INFO:root:2023-07-27 09:52:20.997761 : jeudi, 27. juillet 2023 09:52:20 : 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-07-27 09:57:20 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 3127, 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-07-27 09:57:00.660682 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 09:57:00] "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-07-27 10:02:04.962603+02:00 (in 299.989233 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 10:02:04 CEST)" (scheduled at 2023-07-27 09:57:04.962603+02:00)
+INFO:root:2023-07-27 09:57:05.017653 : jeudi, 27. juillet 2023 09:57:05 : 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-07-27 10:02:04 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 3127, 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-07-27 10:02:20.981675+02:00 (in 299.991561 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 10:02:20 CEST)" (scheduled at 2023-07-27 09:57:20.981675+02:00)
+INFO:root:2023-07-27 09:57:20.998805 : jeudi, 27. juillet 2023 09:57:20 : 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-07-27 10:02:20 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 3127, 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-07-27 10:07:04.962603+02:00 (in 299.993904 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 10:07:04 CEST)" (scheduled at 2023-07-27 10:02:04.962603+02:00)
+INFO:root:2023-07-27 10:02:04.977450 : jeudi, 27. juillet 2023 10:02:04 : 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-07-27 10:07:04 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 3127, 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-07-27 10:07:20.981675+02:00 (in 299.979742 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 10:07:20 CEST)" (scheduled at 2023-07-27 10:02:20.981675+02:00)
+INFO:root:2023-07-27 10:02:21.004940 : jeudi, 27. juillet 2023 10:02:21 : 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-07-27 10:07:20 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 3127, 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-07-27 10:03:19.431377 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:03:19] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 10:03:37.512642 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 10:03:37.703216 : Push_Class_To_MySy_LMS - Le champ pourqui de la formation 'praticien-en-aromatherapie-integrative-45d' n'est pas valide
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:03:37] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 10:05:24.590556 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:05:24] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 10:05:29.970105 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 10:05:30.030268 : Push_Class_To_MySy_LMS - Le champ pourqui de la formation 'praticien-en-aromatherapie-integrative-45d' n'est pas valide
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:05:30] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 10:05:56.939769 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:05:56] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 10:06:01.729274 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 10:06:01.772094 : Push_Class_To_MySy_LMS - Le champ pourqui de la formation 'praticien-en-aromatherapie-integrative-45d' n'est pas valide
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:06:01] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 10:06:43.239751 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 10:06:43.249457 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 10:06:43.263807 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:06:43] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:06:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 10:06:43] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 10:12:04.962603+02:00 (in 299.986656 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 10:12:04 CEST)" (scheduled at 2023-07-27 10:07:04.962603+02:00)
+INFO:root:2023-07-27 10:07:04.986512 : jeudi, 27. juillet 2023 10:07:04 : 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-07-27 10:12:04 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 3127, 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-07-27 10:12:20.981675+02:00 (in 299.993442 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 10:12:20 CEST)" (scheduled at 2023-07-27 10:07:20.981675+02:00)
+INFO:root:2023-07-27 10:07:20.992214 : jeudi, 27. juillet 2023 10:07:20 : 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-07-27 10:12:20 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 3127, 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: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-07-27 13:00:17.142188 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:00:17.145224 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:00:17.145224 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:00:17.146225 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:00:17.146225 : ++ 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-07-27 13:05:17.319112+02:00 (in 299.993993 seconds)
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-27 13:00:37.620772 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:00:37.620772 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:00:37.621774 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:00:37.621774 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:00:37.621774 : ++ 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-07-27 13:05:37.752712+02:00 (in 299.995999 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 13:00:59.100179 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:00:59.102434 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:00:59.106995 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:00:59] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:00:59] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:00:59] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:00:59.441235 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:00:59.467235 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:00:59.559787 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:00:59] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:00:59] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:00:59] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.308920 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.310926 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.372680 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.375936 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.797318 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.802552 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.807546 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.813304 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.819037 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.827643 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.830892 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.842888 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.849080 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.859049 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.869056 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.877061 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.882056 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.888396 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.897187 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.902186 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:00.906878 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.917772 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.926794 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:00.933786 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:01.741035 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:01.742196 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:01.743206 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:01.743206 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:01.744709 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:01.746874 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:02.070533 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.071550 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.073540 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.074551 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.076549 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.081176 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:02.409880 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.411372 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.412925 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.413973 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.414940 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.416243 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:02.748588 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:02.749596 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:02] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:17.718987 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:17] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:18.062635 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:18.068227 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:18] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:18.077746 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:01:18.083134 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:18] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:18.102884 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:18] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:18] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:18.368418 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:01:18] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:01:59.095230 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:00.949934 : Push_Class_To_MySy_LMS - Le champ pourqui de la formation 'praticien-en-aromatherapie-integrative-45d' n'est pas valide
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:00] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:16.239376 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:16] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:17.150876 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:17.157291 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:17] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:17.162400 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:17.171370 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:17] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:17] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:38.222660 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:38.295054 : update_class - La formation a bin ete mise à jour =64a58d497420e5ba1bd2f6a9
+INFO:root:2023-07-27 13:02:38.305024 : external_code = MYSY_Test_AR ==> PRATICIEN EN AROMATHERAPIE INTEGRATIVE
+INFO:root:2023-07-27 13:02:39.373685 : La formation indexée (champ title) =64a58d497420e5ba1bd2f6a9
+INFO:root:2023-07-27 13:02:39.373685 : 1 ont été indexes => title
+INFO:root:2023-07-27 13:02:39.380684 : external_code = MYSY_Test_AR ==> AROMATHERAPIE, HUILES ESSENTIELLES, AROMA
+INFO:root:2023-07-27 13:02:39.931493 : La formation indexée (champs objectif) =64a58d497420e5ba1bd2f6a9
+INFO:root:2023-07-27 13:02:39.931493 : 1 ont été indexes ==> keyword
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:39] "POST /myclass/api/update_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:46.016515 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:46.023058 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:46.028927 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:46] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:46.034521 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:02:46.044613 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:46] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:46] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:46.994084 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:47] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:02:54.169584 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:02:58] "POST /myclass/api/Push_Class_To_MySy_LMS/ 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-07-27 13:05:17 CEST)" (scheduled at 2023-07-27 13:05:17.319112+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 13:10:17.319112+02:00 (in 299.998994 seconds)
+INFO:root:2023-07-27 13:05:17.337989 : jeudi, 27. juillet 2023 01:05:17 : 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-07-27 13:10:17 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 3127, 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\\lms_chamilo\\mysy_lms.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-07-27 13:05:54.605093 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:05:54.605093 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:05:54.606094 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:05:54.606094 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:05:54.606094 : ++ 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-07-27 13:10:54.730212+02:00 (in 299.996000 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 13:06:54.532796 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:06:54.532796 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:06:54.532796 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:06:54.532796 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:06:54.532796 : ++ 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-07-27 13:11:54.597180+02:00 (in 299.998012 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 13:15:46.297163 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:15:46.298168 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:15:46.298168 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:15:46.298168 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:15:46.298168 : ++ 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-07-27 13:20:46.358750+02:00 (in 299.997598 seconds)
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-27 13:15:57.990319 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:15:57.991320 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:15:57.991320 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:15:57.991320 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:15:57.991320 : ++ 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-07-27 13:20:58.093499+02:00 (in 299.996839 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 13:18:38.192717 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:18:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:09.374862 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:49:09.375867 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:49:09.375867 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:49:09.375867 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:49:09.375867 : ++ 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-07-27 13:54:09.437191+02:00 (in 299.996733 seconds)
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-27 13:49:21.059943 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 13:49:21.059943 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 13:49:21.059943 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 13:49:21.059943 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 13:49:21.059943 : ++ 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-07-27 13:54:21.123679+02:00 (in 299.997001 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 13:49:53.680521 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:53.683336 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:53.684350 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:53] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:53] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:53] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:54.564621 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:54.566914 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:54] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:54.993429 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:54.997428 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.001733 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:55.004749 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.009349 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.016946 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.021659 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.025683 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:55.029168 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.034937 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.038085 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.045006 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:55.048588 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:55.053602 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.061929 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.068073 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:55.072795 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.078546 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:49:55.087095 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:49:55.091891 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:49:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:50:40.673269 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:50:40] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:50:40.827005 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:50:40.830502 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:50:40] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:50:40.835520 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:50:40.838951 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:50:40.844080 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:50:40] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:50:40] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:50:40] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:50:41.130355 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:50:41] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:53:21.364264 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:53:21.366895 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:53:21.372896 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:53:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OFC7XMpLZ6haFF/payment_methods?type=card
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OFC7XMpLZ6haFF/payment_methods?type=card response_code=404
+DEBUG:stripe:body='{\n "error": {\n "code": "resource_missing",\n "doc_url": "https://stripe.com/docs/error-codes/resource-missing",\n "message": "No such customer: \'cus_OFC7XMpLZ6haFF\'",\n "param": "id",\n "request_log_url": "https://dashboard.stripe.com/test/logs/req_KE8BbH3TdqWDZL?t=1690458802",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_KE8BbH3TdqWDZL message='Dashboard link for request'
+INFO:stripe:error_code=resource_missing error_message="No such customer: 'cus_OFC7XMpLZ6haFF'" error_param=id error_type=invalid_request_error message='Stripe API error received'
+INFO:root:2023-07-27 13:53:22.916212 : get_customer_payement_cards -Request req_KE8BbH3TdqWDZL: No such customer: 'cus_OFC7XMpLZ6haFF' - ERRORRRR AT Line : 140
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:53:22] "POST /myclass/api/get_payement_mode/ 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-07-27 13:54:09 CEST)" (scheduled at 2023-07-27 13:54:09.437191+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 13:59:09.437191+02:00 (in 299.991667 seconds)
+INFO:root:2023-07-27 13:54:09.449563 : jeudi, 27. juillet 2023 01:54:09 : 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-07-27 13:59:09 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 3127, 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-07-27 13:54:21 CEST)" (scheduled at 2023-07-27 13:54:21.123679+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 13:59:21.123679+02:00 (in 299.984165 seconds)
+INFO:root:2023-07-27 13:54:21.142524 : jeudi, 27. juillet 2023 01:54:21 : 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-07-27 13:59:21 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 3127, 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-07-27 13:54:42.936476 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:54:42] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:54:42.983409 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:54:42] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:55:25.519257 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:55:25.525270 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:25] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:55:46.855283 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:55:46.858943 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:46] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:55:46.864487 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:55:46.867771 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:55:46.871944 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:46] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:55:46.904629 : LMS_Get_Partner_Data - impossible de recuperer les données du pack de service
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:46] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:55:47.570403 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:47] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:55:50.909596 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:55:50.915271 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:55:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:56:05.421316 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/customers
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=email=mysytraining%2Bdev%40gmail.com&name=MySy+Dev+Compte&address[city]=&address[country]=
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers response_code=200
+DEBUG:stripe:body='{\n "id": "cus_OL95ZkVJlbwWyw",\n "object": "customer",\n "address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "balance": 0,\n "created": 1690458966,\n "currency": null,\n "default_currency": null,\n "default_source": null,\n "delinquent": false,\n "description": null,\n "discount": null,\n "email": "mysytraining+dev@gmail.com",\n "invoice_prefix": "EBDD9C53",\n "invoice_settings": {\n "custom_fields": null,\n "default_payment_method": null,\n "footer": null,\n "rendering_options": null\n },\n "livemode": false,\n "metadata": {},\n "name": "MySy Dev Compte",\n "phone": null,\n "preferred_locales": [],\n "shipping": null,\n "tax_exempt": "none",\n "test_clock": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_SPS9Ql2oZxB3GU message='Dashboard link for request'
+INFO:root:2023-07-27 13:56:06.103137 : create_customer - le partenaire mysytraining+dev@gmail.com a été correctement créé dans Stripe. Son Id = cus_OL95ZkVJlbwWyw
+INFO:root:2023-07-27 13:56:06.106839 : update_partner_accountLe partenaire a bien ete mise à jour =64ad69a9676a466fea8a8c02
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:56:06] "POST /myclass/api/update_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:56:23.809072 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:56:23.812102 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:56:23.817572 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:56:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_rFw6yInFFyfBYp message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:56:24] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:24.547269 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/payment_methods
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card&card[number]=4242424242424242&card[exp_month]=12&card[exp_year]=23&card[cvc]=123&billing_details[name]=cherif+DEV
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/payment_methods response_code=200
+DEBUG:stripe:body='{\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "unchecked"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": null,\n "livemode": false,\n "metadata": {},\n "type": "card"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_wImsDjboSe3ZYl message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/payment_methods/pm_1NYSorAbmaEugrFTuc8nPCVA/attach
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OL95ZkVJlbwWyw
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/payment_methods/pm_1NYSorAbmaEugrFTuc8nPCVA/attach response_code=200
+DEBUG:stripe:body='{\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_NsEbAsaOyCccPt message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:26] "POST /myclass/api/add_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:27.457460 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:27.459294 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:27.463150 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:27] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:27.468137 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:27.471138 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:27] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:27] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:27.482503 : LMS_Get_Partner_Data - impossible de recuperer les données du pack de service
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:27] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:28.187274 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:28] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:42.537040 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:42.541041 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:42] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:42] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:44.197632 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:44.200991 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:44.207090 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:44] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_g9lD15DOcAxM8G message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:44] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:48.826079 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:48.829405 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:48.832429 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:48.836767 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:48] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:48] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_ZwPjMmSV8T78jV message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:49] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:49.377017 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:49.382694 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:57:55.224275 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:57:55.227700 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OL95ZkVJlbwWyw&items[0][price]=price_1MT3FmAbmaEugrFTZ5vyJRcZ&items[0][quantity]=4&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200
+DEBUG:stripe:body='{\n "id": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1690459076,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1690459076,\n "currency": "eur",\n "current_period_end": 1693137476,\n "current_period_start": 1690459076,\n "customer": "cus_OL95ZkVJlbwWyw",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OL97deuotFw44Z",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1690459076,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "quantity": 4,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NYSpMAbmaEugrFTicVGk1T3"\n },\n "latest_invoice": {\n "id": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 36000,\n "amount_paid": 0,\n "amount_remaining": 36000,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1690459076,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OL95ZkVJlbwWyw",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": 1690459076,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9PTDk3cTcxNUthV2RaNDh4T1dOcHdRZURmZ2ZUaGhmLDgwOTk5ODc30200PjfwRsdw?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9PTDk3cTcxNUthV2RaNDh4T1dOcHdRZURmZ2ZUaGhmLDgwOTk5ODc30200PjfwRsdw/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1NYSpMAbmaEugrFTQEHw7Np3",\n "object": "line_item",\n "amount": 36000,\n "amount_excluding_tax": 36000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_GOLD (at €90.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1693137476,\n "start": 1690459076\n },\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "9000"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1NYSpMAbmaEugrFTdZxQ9Gmd/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0775",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3NYSpMAbmaEugrFT0xAxy2Tq",\n "object": "payment_intent",\n "amount": 36000,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3NYSpMAbmaEugrFT0xAxy2Tq"\n },\n "client_secret": "pi_3NYSpMAbmaEugrFT0xAxy2Tq_secret_LCGUo9MssQ3Mb7kWC70CeCTR8",\n "confirmation_method": "automatic",\n "created": 1690459076,\n "currency": "eur",\n "customer": "cus_OL95ZkVJlbwWyw",\n "description": "Subscription creation",\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "last_payment_error": null,\n "latest_charge": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "paypal": {\n "preferred_locale": null,\n "reference": null\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "paypal",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1690459076,\n "period_start": 1690459076,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1690459076,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subtotal": 36000,\n "subtotal_excluding_tax": 36000,\n "tax": null,\n "test_clock": null,\n "total": 36000,\n "total_discount_amounts": [],\n "total_excluding_tax": 36000,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1690459076\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 4,\n "schedule": null,\n "start_date": 1690459076,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_N6nngjdqiiUjw0 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:57:57] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 -
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/search?query=customer%3A%27cus_OL95ZkVJlbwWyw%27
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=query=customer%3A%27cus_OL95ZkVJlbwWyw%27
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/search?query=customer%3A%27cus_OL95ZkVJlbwWyw%27 response_code=200
+DEBUG:stripe:body='{\n "object": "search_result",\n "data": [],\n "has_more": false,\n "next_page": null,\n "url": "/v1/invoices/search"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_UUXaHTvT6oJXsb message='Dashboard link for request'
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n
\n\t\n\t\t

\n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\tMySy Dev Compte
\n\t\t\t\t\true tes
\n\t\t\t\t\t75001 paris
\n\t\t\t\t\tfrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t
\n\n\t\t\t\t\tFacture n° FACT_237000313\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\tDate de facture: 27/07/2023 | \n\t\t\t\t\t\tDate échéance : 27/07/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00L_bZ\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGold | \n\t\t\t\t\t\t\t4 | \n\t\t\t\t\t\t\t90 | \n\t\t\t\t\t\t\t360.0 | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t | \n\t\t\t\t\t\t | \n\t\t\t\t\t\tMontant HT: | \n\t\t\t\t\t\t360.0 | \n\t\t\t\t\t
\n\t\t\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\tTVA 20% : | \n\t\t\t\t\t72.0 | \n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t\t | \n\t\t\t\t\tMontant TTC : | \n\t\t\t\t\t432.0 | \n\t\t\t\t
\n\t\t\t
\n\n\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\n\n\n\t\t
\n\n\t
\n\t
\n\t\n\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_237000313.pdf'>
+ path = None
+ link_callback = None
+ xhtml = False
+ context_meta = None
+DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.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='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https')
+DEBUG:xhtml2pdf:Parsing img tag, src:
+DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None}
+DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib
+DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png
+DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13
+DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25
+DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col widths: [None, None]
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 0 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 1 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 2 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 3 has width 0.0
+DEBUG:xhtml2pdf:Col widths: [None, None, None, None]
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col widths: [None, None, None, None]
+DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13
+DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25
+DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645
+DEBUG:paramiko.transport:starting thread (client mode): 0x8a0c6440
+DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0
+DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1
+INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1)
+DEBUG:paramiko.transport:=== Key exchange possibilities ===
+DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256
+DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519
+DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
+DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
+DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
+DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
+DEBUG:paramiko.transport:client compress: none, zlib@openssh.com
+DEBUG:paramiko.transport:server compress: none, zlib@openssh.com
+DEBUG:paramiko.transport:client lang:
+DEBUG:paramiko.transport:server lang:
+DEBUG:paramiko.transport:kex follows: False
+DEBUG:paramiko.transport:=== Key exchange agreements ===
+DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org
+DEBUG:paramiko.transport:HostKey: ssh-ed25519
+DEBUG:paramiko.transport:Cipher: aes128-ctr
+DEBUG:paramiko.transport:MAC: hmac-sha2-256
+DEBUG:paramiko.transport:Compression: none
+DEBUG:paramiko.transport:=== End of kex handshake ===
+DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo
+DEBUG:paramiko.transport:Switch to new keys ...
+DEBUG:paramiko.transport:Attempting password auth...
+DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'}
+DEBUG:paramiko.transport:userauth is OK
+INFO:paramiko.transport:Authentication (password) successful!
+DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes
+DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com"
+DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server.
+DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes
+DEBUG:paramiko.transport:Secsh channel 0 opened.
+DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok
+INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3)
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000313.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000313.pdf', 'wb') -> 00000000
+DEBUG:paramiko.transport.sftp:[chan 0] close(00000000)
+DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000313.pdf')
+INFO:root:2023-07-27 13:58:03.872801 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_237000313.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000313.pdf EST OKKKK
+INFO:paramiko.transport.sftp:[chan 0] sftp session closed.
+DEBUG:paramiko.transport:[chan 0] EOF sent (0)
+DEBUG:paramiko.transport:EOF in transport thread
+INFO:root:2023-07-27 13:58:03.890809 : Impression facture N° FACT_237000313 OK
+INFO:root:2023-07-27 13:58:03.944839 : Impression de mettre à jour la date de la prochaine facturation de la commande : ° MySy_00L_bZ
+INFO:root:2023-07-27 13:58:04.109685 : UpdataPartnerRankingClass - Le RANKING de 3 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-07-27 13:58:03.987821'}
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:04] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:05.555316 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/payment_intents/pi_3NYSpMAbmaEugrFT0xAxy2Tq/confirm
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=payment_method=pm_1NYSorAbmaEugrFTuc8nPCVA&return_url=http%3A%2F%2Flocalhost%3A3009%2FOrderConfirmation_3DS%2FMySy_00L_bZ%2FGold
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/payment_intents/pi_3NYSpMAbmaEugrFT0xAxy2Tq/confirm response_code=200
+DEBUG:stripe:body='{\n "id": "pi_3NYSpMAbmaEugrFT0xAxy2Tq",\n "object": "payment_intent",\n "amount": 36000,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 36000,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [\n {\n "id": "ch_3NYSpMAbmaEugrFT0jVQbRar",\n "object": "charge",\n "amount": 36000,\n "amount_captured": 36000,\n "amount_refunded": 0,\n "application": null,\n "application_fee": null,\n "application_fee_amount": null,\n "balance_transaction": "txn_3NYSpMAbmaEugrFT0OhJ1SIq",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "calculated_statement_descriptor": "WWW.MYSY-TRAINING.COM",\n "captured": true,\n "created": 1690459086,\n "currency": "eur",\n "customer": "cus_OL95ZkVJlbwWyw",\n "description": "Subscription creation",\n "destination": null,\n "dispute": null,\n "disputed": false,\n "failure_balance_transaction": null,\n "failure_code": null,\n "failure_message": null,\n "fraud_details": {},\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "livemode": false,\n "metadata": {},\n "on_behalf_of": null,\n "order": null,\n "outcome": {\n "network_status": "approved_by_network",\n "reason": null,\n "risk_level": "normal",\n "risk_score": 50,\n "seller_message": "Payment complete.",\n "type": "authorized"\n },\n "paid": true,\n "payment_intent": "pi_3NYSpMAbmaEugrFT0xAxy2Tq",\n "payment_method": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "payment_method_details": {\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "installments": null,\n "last4": "4242",\n "mandate": null,\n "network": "visa",\n "network_token": {\n "used": false\n },\n "three_d_secure": null,\n "wallet": null\n },\n "type": "card"\n },\n "receipt_email": null,\n "receipt_number": null,\n "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xTFVVZkFBYm1hRXVnckZUKM-3iaYGMgZ_Up_5Ht46LBaBmUEM2-5yGlLpGbXarFuh-k-azhCoBbu__SttCQHzrWgPKtFo9gemGDM7?s=ap",\n "refunded": false,\n "refunds": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges/ch_3NYSpMAbmaEugrFT0jVQbRar/refunds"\n },\n "review": null,\n "shipping": null,\n "source": null,\n "source_transfer": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "succeeded",\n "transfer_data": null,\n "transfer_group": null\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/charges?payment_intent=pi_3NYSpMAbmaEugrFT0xAxy2Tq"\n },\n "client_secret": "pi_3NYSpMAbmaEugrFT0xAxy2Tq_secret_LCGUo9MssQ3Mb7kWC70CeCTR8",\n "confirmation_method": "automatic",\n "created": 1690459076,\n "currency": "eur",\n "customer": "cus_OL95ZkVJlbwWyw",\n "description": "Subscription creation",\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "last_payment_error": null,\n "latest_charge": "ch_3NYSpMAbmaEugrFT0jVQbRar",\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "paypal": {\n "preferred_locale": null,\n "reference": null\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "paypal",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "succeeded",\n "transfer_data": null,\n "transfer_group": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_1qCdjFpvWis9fn message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:07] "POST /myclass/api/confirm_payment/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:09.835717 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:09] "POST /myclass/api/CheckSalesOrder/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:09.906113 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/payment_intents/pi_3NYSpMAbmaEugrFT0xAxy2Tq
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/payment_intents/pi_3NYSpMAbmaEugrFT0xAxy2Tq response_code=200
+DEBUG:stripe:body='{\n "id": "pi_3NYSpMAbmaEugrFT0xAxy2Tq",\n "object": "payment_intent",\n "amount": 36000,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 36000,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [\n {\n "id": "ch_3NYSpMAbmaEugrFT0jVQbRar",\n "object": "charge",\n "amount": 36000,\n "amount_captured": 36000,\n "amount_refunded": 0,\n "application": null,\n "application_fee": null,\n "application_fee_amount": null,\n "balance_transaction": "txn_3NYSpMAbmaEugrFT0OhJ1SIq",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "calculated_statement_descriptor": "WWW.MYSY-TRAINING.COM",\n "captured": true,\n "created": 1690459086,\n "currency": "eur",\n "customer": "cus_OL95ZkVJlbwWyw",\n "description": "Subscription creation",\n "destination": null,\n "dispute": null,\n "disputed": false,\n "failure_balance_transaction": null,\n "failure_code": null,\n "failure_message": null,\n "fraud_details": {},\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "livemode": false,\n "metadata": {},\n "on_behalf_of": null,\n "order": null,\n "outcome": {\n "network_status": "approved_by_network",\n "reason": null,\n "risk_level": "normal",\n "risk_score": 50,\n "seller_message": "Payment complete.",\n "type": "authorized"\n },\n "paid": true,\n "payment_intent": "pi_3NYSpMAbmaEugrFT0xAxy2Tq",\n "payment_method": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "payment_method_details": {\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "installments": null,\n "last4": "4242",\n "mandate": null,\n "network": "visa",\n "network_token": {\n "used": false\n },\n "three_d_secure": null,\n "wallet": null\n },\n "type": "card"\n },\n "receipt_email": null,\n "receipt_number": null,\n "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xTFVVZkFBYm1hRXVnckZUKNK3iaYGMgb16EY_3Mo6LBbmoraQpg7zJ6LkNb8a0Il4SlA6nCK1WO2i_7osbdNJ290F5IrPli62sNA5?s=ap",\n "refunded": false,\n "refunds": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges/ch_3NYSpMAbmaEugrFT0jVQbRar/refunds"\n },\n "review": null,\n "shipping": null,\n "source": null,\n "source_transfer": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "succeeded",\n "transfer_data": null,\n "transfer_group": null\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/charges?payment_intent=pi_3NYSpMAbmaEugrFT0xAxy2Tq"\n },\n "client_secret": "pi_3NYSpMAbmaEugrFT0xAxy2Tq_secret_LCGUo9MssQ3Mb7kWC70CeCTR8",\n "confirmation_method": "automatic",\n "created": 1690459076,\n "currency": "eur",\n "customer": "cus_OL95ZkVJlbwWyw",\n "description": "Subscription creation",\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "last_payment_error": null,\n "latest_charge": "ch_3NYSpMAbmaEugrFT0jVQbRar",\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "paypal": {\n "preferred_locale": null,\n "reference": null\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "paypal",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "succeeded",\n "transfer_data": null,\n "transfer_group": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_ebsgRsn1UMS83p message='Dashboard link for request'
+INFO:root:2023-07-27 13:58:10.540531 : payment_retrieve_status le Payement pi_3NYSpMAbmaEugrFT0xAxy2Tq est validé
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:10] "POST /myclass/api/payment_retrieve_status/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:10.562920 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:13.491565 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:13.497559 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:13.503346 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:13] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:13.510440 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:13.522881 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:13] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:13] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:13.542772 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 2075
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:13] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:14.290819 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:14] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:22.417317 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:22.422215 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:22] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:22.426366 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:22.430399 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 13:58:22.436876 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:22] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:22] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 13:58:23.213395 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 13:58:23] "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-07-27 14:04:09.437191+02:00 (in 299.987145 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:04:09 CEST)" (scheduled at 2023-07-27 13:59:09.437191+02:00)
+INFO:root:2023-07-27 13:59:09.452289 : jeudi, 27. juillet 2023 01:59:09 : 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-07-27 14:04:09 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 3127, 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-07-27 14:04:21.123679+02:00 (in 299.996135 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:04:21 CEST)" (scheduled at 2023-07-27 13:59:21.123679+02:00)
+INFO:root:2023-07-27 13:59:21.129544 : jeudi, 27. juillet 2023 01:59:21 : 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-07-27 14:04:21 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 3127, 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-07-27 14:03:00.510769 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:03:00] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:03:01.025891 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 14:03:01.029245 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:03:01] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:03:01.032486 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 14:03:01.037086 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:03:01] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:03:01] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:03:01] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:03:10.270191 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:03:11] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 14:09:09.437191+02:00 (in 299.992496 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:09:09 CEST)" (scheduled at 2023-07-27 14:04:09.437191+02:00)
+INFO:root:2023-07-27 14:04:09.446700 : jeudi, 27. juillet 2023 02:04:09 : 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-07-27 14:09:09 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 3127, 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-07-27 14:09:21.123679+02:00 (in 299.992402 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:09:21 CEST)" (scheduled at 2023-07-27 14:04:21.123679+02:00)
+INFO:root:2023-07-27 14:04:21.133275 : jeudi, 27. juillet 2023 02:04:21 : 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-07-27 14:09:21 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 3127, 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\\lms_chamilo\\mysy_lms.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-07-27 14:05:05.848638 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 14:05:05.848638 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 14:05:05.848638 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 14:05:05.848638 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 14:05:05.848638 : ++ 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-07-27 14:10:05.913069+02:00 (in 299.996818 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 14:14:09.437191+02:00 (in 299.994681 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:14:09 CEST)" (scheduled at 2023-07-27 14:09:09.437191+02:00)
+INFO:root:2023-07-27 14:09:09.444511 : jeudi, 27. juillet 2023 02:09:09 : 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-07-27 14:14:09 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 3127, 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-07-27 14:10:05 CEST)" (scheduled at 2023-07-27 14:10:05.913069+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 14:15:05.913069+02:00 (in 299.986635 seconds)
+INFO:root:2023-07-27 14:10:05.943436 : jeudi, 27. juillet 2023 02:10:05 : 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-07-27 14:15:05 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 3127, 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-07-27 14:19:09.437191+02:00 (in 299.996125 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:19:09 CEST)" (scheduled at 2023-07-27 14:14:09.437191+02:00)
+INFO:root:2023-07-27 14:14:09.443174 : jeudi, 27. juillet 2023 02:14:09 : 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-07-27 14:19:09 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 3127, 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-07-27 14:20:05.913069+02:00 (in 299.985066 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 14:20:05 CEST)" (scheduled at 2023-07-27 14:15:05.913069+02:00)
+INFO:root:2023-07-27 14:15:05.929040 : jeudi, 27. juillet 2023 02:15:05 : 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-07-27 14:20:05 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 3127, 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\\lms_chamilo\\mysy_lms.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-07-27 14:16:36.506348 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 14:16:36.507343 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 14:16:36.507343 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 14:16:36.507343 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 14:16:36.507343 : ++ 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-07-27 14:21:36.636164+02:00 (in 299.995764 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 14:17:14.760246 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 14:17:14.761320 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 14:17:14.761320 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 14:17:14.761320 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 14:17:14.761320 : ++ 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-07-27 14:22:14.813503+02:00 (in 299.998000 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 14:50:52.711915 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 14:50:52.711915 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 14:50:52.712938 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 14:50:52.712938 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 14:50:52.712938 : ++ 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-07-27 14:55:52.900574+02:00 (in 299.996504 seconds)
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-27 14:51:03.753477 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 14:51:03.753477 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 14:51:03.753477 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 14:51:03.753477 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 14:51:03.753477 : ++ 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-07-27 14:56:03.825543+02:00 (in 299.998005 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 14:53:54.946221 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:53:54] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:53:55.222404 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 14:53:55.228478 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 14:53:55.233370 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:53:55] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:53:55.239875 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 14:53:55.251456 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:53:55] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:53:55] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:53:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:53:55.637956 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:53:55] "POST /myclass/api/find_partner_class_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-07-27 14:55:52 CEST)" (scheduled at 2023-07-27 14:55:52.900574+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 15:00:52.900574+02:00 (in 299.988875 seconds)
+INFO:root:2023-07-27 14:55:52.929703 : jeudi, 27. juillet 2023 02:55:52 : 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-07-27 15:00:52 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 3127, 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-07-27 14:55:59.475566 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:55:59] "POST /myclass/api/find_partner_class_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-07-27 14:56:03 CEST)" (scheduled at 2023-07-27 14:56:03.825543+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 15:01:03.825543+02:00 (in 299.987158 seconds)
+INFO:root:2023-07-27 14:56:03.842365 : jeudi, 27. juillet 2023 02:56:03 : 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-07-27 15:01:03 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 3127, 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-07-27 14:56:35.021736 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:56:35] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:56:45.197267 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:56:45] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:56:57.408967 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:56:57] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:57:46.644193 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:57:46] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:59:16.644916 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:59:16] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:59:44.888859 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:59:44] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 14:59:57.175485 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 14:59:57] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:26.676802 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:26] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:27.520857 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:00:27.526350 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:27] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:27] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:27.534355 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:00:27.539013 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:27] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:27] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:39.091093 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:00:41.187283 : update_class - La formation a bin ete mise à jour =64a58d3f7420e5ba1bd2f655
+INFO:root:2023-07-27 15:00:41.194553 : external_code = MYSY_Test_AP ==> PRATICIEN EN AROMATHERAPIE INTEGRATIVE
+INFO:root:2023-07-27 15:00:42.222461 : La formation indexée (champ title) =64a58d3f7420e5ba1bd2f655
+INFO:root:2023-07-27 15:00:42.223479 : 1 ont été indexes => title
+INFO:root:2023-07-27 15:00:42.229369 : external_code = MYSY_Test_AP ==> AROMATHERAPIE, HUILES ESSENTIELLES, AROMA
+INFO:root:2023-07-27 15:00:42.753548 : La formation indexée (champs objectif) =64a58d3f7420e5ba1bd2f655
+INFO:root:2023-07-27 15:00:42.753548 : 1 ont été indexes ==> keyword
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:42] "POST /myclass/api/update_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:49.848046 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:00:49.853846 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:00:49.857005 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:49.866330 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:00:49.876421 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:49] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:00:50.962300 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:00:50] "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-07-27 15:05:52.900574+02:00 (in 299.985653 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:05:52 CEST)" (scheduled at 2023-07-27 15:00:52.900574+02:00)
+INFO:root:2023-07-27 15:00:52.917218 : jeudi, 27. juillet 2023 03:00:52 : 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-07-27 15:05:52 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 3127, 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-07-27 15:06:03.825543+02:00 (in 299.995858 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:06:03 CEST)" (scheduled at 2023-07-27 15:01:03.825543+02:00)
+INFO:root:2023-07-27 15:01:03.831987 : jeudi, 27. juillet 2023 03:01:03 : 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-07-27 15:06:03 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 3127, 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-07-27 15:02:40.154053 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:02:40] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:05:21.110482 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:21] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:05:32.164808 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:05:32.168510 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:05:32.172535 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:32] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:05:32.181540 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:05:32.188583 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:32] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:32] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:05:32.841341 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:32] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:05:48.425960 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:05:48] "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-07-27 15:10:52.900574+02:00 (in 299.993459 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:10:52 CEST)" (scheduled at 2023-07-27 15:05:52.900574+02:00)
+INFO:root:2023-07-27 15:05:52.909116 : jeudi, 27. juillet 2023 03:05:52 : 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-07-27 15:10:52 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 3127, 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-07-27 15:11:03.825543+02:00 (in 299.986324 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:11:03 CEST)" (scheduled at 2023-07-27 15:06:03.825543+02:00)
+INFO:root:2023-07-27 15:06:03.841214 : jeudi, 27. juillet 2023 03:06:03 : 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-07-27 15:11:03 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 3127, 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-07-27 15:08:05.398208 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:08:05] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:08:06.149003 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:08:06.154005 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:08:06] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:08:06.159537 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:08:06.167122 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:08:06] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:08:06] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:08:06] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:10:48.947769 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:10:48.952255 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:10:48.954257 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:10:48.960537 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:10:48] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:10:48.968713 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:10:48] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:10:48] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:10:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:10:49.680820 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:10:49] "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-07-27 15:15:52.900574+02:00 (in 299.998767 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:15:52 CEST)" (scheduled at 2023-07-27 15:10:52.900574+02:00)
+INFO:root:2023-07-27 15:10:52.903787 : jeudi, 27. juillet 2023 03:10:52 : 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-07-27 15:15:52 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 3127, 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-07-27 15:11:03.835442 : Security check : IP adresse '127.0.0.1' connected
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 15:16:03.825543+02:00 (in 299.986482 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:16:03 CEST)" (scheduled at 2023-07-27 15:11:03.825543+02:00)
+INFO:root:2023-07-27 15:11:03.841331 : jeudi, 27. juillet 2023 03:11:03 : 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-07-27 15:16:03 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 3127, 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:127.0.0.1 - - [27/Jul/2023 15:11:03] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:11:29.942092 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:11:29] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:12:49.627838 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:12:49] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:13:26.815298 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:13:26] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:14:02.051524 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:14:02] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:14:20.298239 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:14:20] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:14:28.972512 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:14:28] "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-07-27 15:20:52.900574+02:00 (in 299.996390 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:20:52 CEST)" (scheduled at 2023-07-27 15:15:52.900574+02:00)
+INFO:root:2023-07-27 15:15:52.912114 : jeudi, 27. juillet 2023 03:15:52 : 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-07-27 15:20:52 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 3127, 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-07-27 15:21:03.825543+02:00 (in 299.988272 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:21:03 CEST)" (scheduled at 2023-07-27 15:16:03.825543+02:00)
+INFO:root:2023-07-27 15:16:03.840250 : jeudi, 27. juillet 2023 03:16:03 : 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-07-27 15:21:03 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 3127, 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-07-27 15:16:42.012874 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:16:42.015874 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:16:42.019875 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:16:42] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:16:42.024874 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:16:42.034463 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:16:42] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:16:42] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:16:42] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:16:42.749457 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:16:42] "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-07-27 15:25:52.900574+02:00 (in 299.990066 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:25:52 CEST)" (scheduled at 2023-07-27 15:20:52.900574+02:00)
+INFO:root:2023-07-27 15:20:52.951180 : jeudi, 27. juillet 2023 03:20:52 : 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-07-27 15:25:52 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 3127, 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-07-27 15:26:03.825543+02:00 (in 299.989406 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:26:03 CEST)" (scheduled at 2023-07-27 15:21:03.825543+02:00)
+INFO:root:2023-07-27 15:21:03.839496 : jeudi, 27. juillet 2023 03:21:03 : 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-07-27 15:26:03 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 3127, 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-07-27 15:30:52.900574+02:00 (in 299.991166 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:30:52 CEST)" (scheduled at 2023-07-27 15:25:52.900574+02:00)
+INFO:root:2023-07-27 15:25:52.919625 : jeudi, 27. juillet 2023 03:25:52 : 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-07-27 15:30:52 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 3127, 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-07-27 15:31:03.825543+02:00 (in 299.990285 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:31:03 CEST)" (scheduled at 2023-07-27 15:26:03.825543+02:00)
+INFO:root:2023-07-27 15:26:03.837957 : jeudi, 27. juillet 2023 03:26:03 : 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-07-27 15:31:03 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 3127, 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-07-27 15:35:52.900574+02:00 (in 299.979843 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:35:52 CEST)" (scheduled at 2023-07-27 15:30:52.900574+02:00)
+INFO:root:2023-07-27 15:30:52.922736 : jeudi, 27. juillet 2023 03:30:52 : 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-07-27 15:35:52 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 3127, 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-07-27 15:36:03.825543+02:00 (in 299.983456 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:36:03 CEST)" (scheduled at 2023-07-27 15:31:03.825543+02:00)
+INFO:root:2023-07-27 15:31:03.845568 : jeudi, 27. juillet 2023 03:31:03 : 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-07-27 15:36:03 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 3127, 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-07-27 15:33:58.884995 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:33:58] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:34:12.694719 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:34:12.700620 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:34:12.708828 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:34:12] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:34:12.715198 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:34:12.725308 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:34:12] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:34:12] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:34:12] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:34:13.498728 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:34:13] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:34:59.069539 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:34:59] "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-07-27 15:40:52.900574+02:00 (in 299.998554 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:40:52 CEST)" (scheduled at 2023-07-27 15:35:52.900574+02:00)
+INFO:root:2023-07-27 15:35:52.905023 : jeudi, 27. juillet 2023 03:35:52 : 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-07-27 15:40:52 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 3127, 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-07-27 15:41:03.825543+02:00 (in 299.987716 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:41:03 CEST)" (scheduled at 2023-07-27 15:36:03.825543+02:00)
+INFO:root:2023-07-27 15:36:03.840359 : jeudi, 27. juillet 2023 03:36:03 : 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-07-27 15:41:03 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 3127, 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-07-27 15:40:52.614333 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:40:52.621333 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:40:52.626333 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:40:52] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:40:52.634345 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:40:52.643354 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:40:52] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:40:52] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:40:52] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 15:45:52.900574+02:00 (in 299.993763 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:45:52 CEST)" (scheduled at 2023-07-27 15:40:52.900574+02:00)
+INFO:root:2023-07-27 15:40:52.909817 : jeudi, 27. juillet 2023 03:40:52 : 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-07-27 15:45:52 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 3127, 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-07-27 15:40:53.633090 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:40:53] "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-07-27 15:46:03.825543+02:00 (in 299.990901 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:46:03 CEST)" (scheduled at 2023-07-27 15:41:03.825543+02:00)
+INFO:root:2023-07-27 15:41:03.837642 : jeudi, 27. juillet 2023 03:41:03 : 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-07-27 15:46:03 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 3127, 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-07-27 15:41:38.497240 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:41:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:42:03.473111 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:42:03] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:45:34.302938 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:45:34] "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-07-27 15:50:52.900574+02:00 (in 299.996404 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:50:52 CEST)" (scheduled at 2023-07-27 15:45:52.900574+02:00)
+INFO:root:2023-07-27 15:45:52.909182 : jeudi, 27. juillet 2023 03:45:52 : 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-07-27 15:50:52 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 3127, 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-07-27 15:51:03.825543+02:00 (in 299.988513 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:51:03 CEST)" (scheduled at 2023-07-27 15:46:03.825543+02:00)
+INFO:root:2023-07-27 15:46:03.845644 : jeudi, 27. juillet 2023 03:46:03 : 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-07-27 15:51:03 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 3127, 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-07-27 15:46:11.808409 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:46:11] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:46:34.909374 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:46:34] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 15:48:46.241122 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 15:48:46.241645 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 15:48:46.241645 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 15:48:46.241645 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 15:48:46.241645 : ++ 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-07-27 15:53:46.410204+02:00 (in 299.994997 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 15:55:52.900574+02:00 (in 299.995161 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 15:55:52 CEST)" (scheduled at 2023-07-27 15:50:52.900574+02:00)
+INFO:root:2023-07-27 15:50:52.917345 : jeudi, 27. juillet 2023 03:50:52 : 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-07-27 15:55:52 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 3127, 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\\lms_chamilo\\mysy_lms.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-07-27 15:51:08.669337 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 15:51:08.669337 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 15:51:08.670345 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 15:51:08.670345 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 15:51:08.670345 : ++ 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-07-27 15:56:09.107892+02:00 (in 299.988981 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 15:51:09.242645 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:51:23.398858 : Push_Class_To_MySy_LMS -'recid' - Line : 3722
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:51:23] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 15:52:52.459812 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 15:52:52.459812 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 15:52:52.460840 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 15:52:52.460840 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 15:52:52.460840 : ++ 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-07-27 15:57:52.548889+02:00 (in 299.996538 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 15:53:15.693992 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 15:53:15.694508 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 15:53:15.694508 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 15:53:15.694508 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 15:53:15.694508 : ++ 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-07-27 15:58:15.781226+02:00 (in 299.997831 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 15:53:21.202711 : Security check : IP adresse '127.0.0.1' connected
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:00:52.900574+02:00 (in 299.982007 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:00:52 CEST)" (scheduled at 2023-07-27 15:55:52.900574+02:00)
+INFO:root:2023-07-27 15:55:52.928067 : jeudi, 27. juillet 2023 03:55:52 : 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-07-27 16:00:52 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 3127, 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-07-27 15:56:38.235093 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:56:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:56:50.707911 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:56:55.418712 : Push_Class_To_MySy_LMS -'partner_owner_recid' - Line : 3533
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:56:55] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 15:58:10.544315 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 15:58:10.544315 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 15:58:10.544315 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 15:58:10.545329 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 15:58:10.545329 : ++ 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-07-27 16:03:10.619224+02:00 (in 299.996303 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 15:58:10.697698 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:58:21] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 15:59:13.313192 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 15:59:35.174641 : Push_Class_To_MySy_LMS -Can't connect to server on '88.170.110.220' (10060) - Line : 3439
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 15:59:35] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:00:49.902748 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:00:49.908233 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:00:49.912772 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:00:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:00:49.918833 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:00:49.928661 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:00:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:00:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:00:49] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:00:50.918595 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:00:50] "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-07-27 16:05:52.900574+02:00 (in 299.996073 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:05:52 CEST)" (scheduled at 2023-07-27 16:00:52.900574+02:00)
+INFO:root:2023-07-27 16:00:52.907933 : jeudi, 27. juillet 2023 04:00:52 : 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-07-27 16:05:52 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 3127, 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-07-27 16:03:10 CEST)" (scheduled at 2023-07-27 16:03:10.619224+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:08:10.619224+02:00 (in 299.988590 seconds)
+INFO:root:2023-07-27 16:03:10.635174 : jeudi, 27. juillet 2023 04:03:10 : 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-07-27 16:08:10 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 3127, 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-07-27 16:03:49.557037 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:03:49.562653 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:03:49.566143 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:03:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:03:49.571471 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:03:49.582330 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:03:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:03:49] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:03:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:03:50.299626 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:03:50] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:04:11.612895 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:04:22.566328 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:04:22.570327 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:04:22] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:04:22] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:04:27.043721 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:04:27] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:04:27.112091 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:04:27] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:05:14.896712 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:05:14] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:05:30.201817 : Push_Class_To_MySy_LMS -'lms_class_id' - Line : 3513
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:05:30] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:10:52.900574+02:00 (in 299.987097 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:10:52 CEST)" (scheduled at 2023-07-27 16:05:52.900574+02:00)
+INFO:root:2023-07-27 16:05:52.915446 : jeudi, 27. juillet 2023 04:05:52 : 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-07-27 16:10:52 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 3127, 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-07-27 16:07:48.776271 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:07:48.780270 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:07:48.784271 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:07:48.788865 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:07:48] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:07:48] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:07:48.802865 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:07:48] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:07:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:07:49.553938 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:07:49] "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-07-27 16:13:10.619224+02:00 (in 299.991790 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:13:10 CEST)" (scheduled at 2023-07-27 16:08:10.619224+02:00)
+INFO:root:2023-07-27 16:08:10.630436 : jeudi, 27. juillet 2023 04:08:10 : 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-07-27 16:13:10 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 3127, 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-07-27 16:08:15.985509 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:08:15] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:08:21.294943 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:08:34.047928 : Push_Class_To_MySy_LMS -'lms_class_id' - Line : 3513
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:08:34] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 16:09:32.962542 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 16:09:32.962542 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 16:09:32.962542 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 16:09:32.963536 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 16:09:32.963536 : ++ 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-07-27 16:14:33.087061+02:00 (in 299.995975 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 16:09:34.009412 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:09:37.076857 : Impossible de créer la formation dans le LMS {ProgrammingError('empty statement')}
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:09:37] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:15:52.900574+02:00 (in 299.992999 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:15:52 CEST)" (scheduled at 2023-07-27 16:10:52.900574+02:00)
+INFO:root:2023-07-27 16:10:52.916768 : jeudi, 27. juillet 2023 04:10:52 : 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-07-27 16:15:52 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 3127, 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\\lms_chamilo\\mysy_lms.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-07-27 16:14:39.092263 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 16:14:39.093264 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 16:14:39.093264 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 16:14:39.093264 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 16:14:39.093264 : ++ 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-07-27 16:19:39.182844+02:00 (in 299.996691 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 16:14:39.251985 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:14:41.435463 : La mise à jour n'est pas autorisée. lms_class_code 1a3034540f
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:14:41] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.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-07-27 16:15:24.736195 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 16:15:24.737194 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 16:15:24.737194 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 16:15:24.737194 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 16:15:24.737194 : ++ 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-07-27 16:20:24.817652+02:00 (in 299.998491 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 16:15:31.564257 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:15:31.572996 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:15:31.578510 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:15:31.593124 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:15:31.611144 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:15:32.725228 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:32] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:15:35.172723 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:35] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:15:38.495576 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:15:38.500395 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:38] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:15:38] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:20:52.900574+02:00 (in 299.987881 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:20:52 CEST)" (scheduled at 2023-07-27 16:15:52.900574+02:00)
+INFO:root:2023-07-27 16:15:52.916470 : jeudi, 27. juillet 2023 04:15:52 : 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-07-27 16:20:52 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 3127, 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-07-27 16:18:06.583999 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:18:06.586911 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:18:06] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:18:06.593275 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:18:06.597719 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:18:06.601338 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:18:06] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:18:06] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:18:06] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:18:06.637001 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:18:06] "POST /myclass/api/find_partner_class_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-07-27 16:20:24 CEST)" (scheduled at 2023-07-27 16:20:24.817652+02:00)
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:25:24.817652+02:00 (in 299.986828 seconds)
+INFO:root:2023-07-27 16:20:24.832825 : jeudi, 27. juillet 2023 04:20:24 : 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-07-27 16:25:24 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 3127, 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-07-27 16:25:52.900574+02:00 (in 299.985436 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:25:52 CEST)" (scheduled at 2023-07-27 16:20:52.900574+02:00)
+INFO:root:2023-07-27 16:20:52.925298 : jeudi, 27. juillet 2023 04:20:52 : 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-07-27 16:25:52 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 3127, 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-07-27 16:22:38.500193 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:22:38.504191 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:22:38] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:22:38.510622 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:22:38.516912 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:22:38.520426 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:22:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:22:38] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:22:38] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:24:07.850039 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:24:07.853431 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:24:07.857432 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:24:07] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:24:07.862739 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:24:07] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:24:07.874662 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:24:07] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:24:07] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:30:24.817652+02:00 (in 299.987991 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:30:24 CEST)" (scheduled at 2023-07-27 16:25:24.817652+02:00)
+INFO:root:2023-07-27 16:25:24.831657 : jeudi, 27. juillet 2023 04:25:24 : 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-07-27 16:30:24 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 3127, 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-07-27 16:30:52.900574+02:00 (in 299.988380 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:30:52 CEST)" (scheduled at 2023-07-27 16:25:52.900574+02:00)
+INFO:root:2023-07-27 16:25:52.918190 : jeudi, 27. juillet 2023 04:25:52 : 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-07-27 16:30:52 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 3127, 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-07-27 16:25:59.713952 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:25:59.719755 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:25:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:25:59.725758 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:25:59.732170 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:25:59.747979 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:25:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:25:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:25:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:35:24.817652+02:00 (in 299.983985 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:35:24 CEST)" (scheduled at 2023-07-27 16:30:24.817652+02:00)
+INFO:root:2023-07-27 16:30:24.836756 : jeudi, 27. juillet 2023 04:30:24 : 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-07-27 16:35:24 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 3127, 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-07-27 16:35:52.900574+02:00 (in 299.989966 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:35:52 CEST)" (scheduled at 2023-07-27 16:30:52.900574+02:00)
+INFO:root:2023-07-27 16:30:52.921115 : jeudi, 27. juillet 2023 04:30:52 : 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-07-27 16:35:52 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 3127, 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-07-27 16:31:45.672984 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:31:45.677366 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:31:45.683954 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:31:45.690692 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:31:45] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:31:45.701999 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:31:45] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:31:45] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:31:45] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:32:33.795594 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:32:33.800015 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:32:33.803673 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:32:33] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:32:33.809887 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:32:33.814512 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:32:33] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:32:33] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:32:33] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:34:59.212926 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:34:59.217112 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:34:59.220135 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:34:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:34:59.225017 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:34:59.229942 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:34:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:34:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:34:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:35:23.814888 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:35:23.818888 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:35:23.821888 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:35:23] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 16:35:23.827889 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 16:35:23.838888 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:35:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:35:23] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:35:23] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+DEBUG:apscheduler.scheduler:Looking for jobs to run
+DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-27 16:40:24.817652+02:00 (in 299.996954 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:40:24 CEST)" (scheduled at 2023-07-27 16:35:24.817652+02:00)
+INFO:root:2023-07-27 16:35:24.822698 : jeudi, 27. juillet 2023 04:35:24 : 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-07-27 16:40:24 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 3127, 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-07-27 16:40:52.900574+02:00 (in 299.991594 seconds)
+INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-27 16:40:52 CEST)" (scheduled at 2023-07-27 16:35:52.900574+02:00)
+INFO:root:2023-07-27 16:35:52.912346 : jeudi, 27. juillet 2023 04:35:52 : 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-07-27 16:40:52 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 3127, 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-07-27 16:36:07.316112 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 16:36:07] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_client.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-07-27 17:11:00.020461 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 17:11:00.020461 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 17:11:00.021481 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 17:11:00.021481 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 17:11:00.021481 : ++ 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-07-27 17:16:00.093829+02:00 (in 299.996696 seconds)
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-27 17:11:10.949124 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-27 17:11:10.949124 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-27 17:11:10.949124 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-27 17:11:10.949124 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-27 17:11:10.949124 : ++ 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-07-27 17:16:11.016793+02:00 (in 299.996698 seconds)
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 101-758-117
+INFO:root:2023-07-27 17:11:17.078813 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 17:11:17.084242 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 17:11:17.088717 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 17:11:17.091816 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:11:17] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:11:17.111235 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:11:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:11:17] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:11:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:11:18.009694 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:11:18] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:12:37.005670 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:37] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:12:49.777836 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 17:12:49.782156 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:12:49.786173 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 17:12:49.790173 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-27 17:12:49.796174 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:49] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:12:50.493072 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:50] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:12:52.210711 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:12:52] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
+INFO:root:2023-07-27 17:13:49.859330 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [27/Jul/2023 17:13:49] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
diff --git a/lms_chamilo/mysy_lms.py b/lms_chamilo/mysy_lms.py
index e98d071..8914a6d 100644
--- a/lms_chamilo/mysy_lms.py
+++ b/lms_chamilo/mysy_lms.py
@@ -3510,7 +3510,7 @@ def Push_Class_To_MySy_LMS(diction):
# Verifier si la formation a un code 'LMS', au quel cas, on fait des mises à jour coté LMS
lms_class_code = ""
if ("lms_class_code" in Class_To_Push.keys()):
- lms_class_code = Class_To_Push['lms_class_id']
+ lms_class_code = Class_To_Push['lms_class_code']
update_push = True
@@ -3530,6 +3530,7 @@ def Push_Class_To_MySy_LMS(diction):
data_to_push['plus_produit'] = Class_To_Push['plus_produit']
data_to_push['mysy_lms_user_id'] = my_partner['mysy_lms_user_id']
data_to_push['lms_virtualhost_id'] = my_partner['lms_virtualhost_id']
+ data_to_push['partner_owner_recid'] = Class_To_Push['partner_owner_recid']
query_insert_class = ""
if( update_push is False):
@@ -3547,6 +3548,10 @@ def Push_Class_To_MySy_LMS(diction):
"internal_url = '"+str(data_to_push['internal_url'])+"'," \
" visual_code = '"+str( data_to_push['lms_class_code'] )+"';" \
+ else:
+ mycommon.myprint(" La mise à jour n'est pas autorisée. lms_class_code " + str(lms_class_code))
+ return False, " La mise à jour n'est pas autorisée. "
+
print(" #### query_insert_class = ", query_insert_class)
try:
cur.execute(query_insert_class)
@@ -3575,7 +3580,7 @@ def Push_Class_To_MySy_LMS(diction):
conn.commit()
- query_course_rel_user = "insert into course_rel_user set user_id='"+ str( data_to_push['mysy_lms_user_id']) +"', c_id='" +str(new_class_id)+ "' , relation_type = '3', status = '3', is_tutor = '3'"
+ query_course_rel_user = "insert into course_rel_user set user_id='"+ str( data_to_push['mysy_lms_user_id']) +"', c_id='" +str(new_class_id)+ "' , relation_type = '0', status = '1', is_tutor = '0', sort = '1' "
print(" #### query_course_rel_user = ", query_course_rel_user)
try:
@@ -3711,6 +3716,31 @@ def Push_Class_To_MySy_LMS(diction):
conn.commit()
+ # Si la publication se passe bien alors, on met à jour la collection MyClass avec le statut et la date.
+
+ data_update = {}
+ data_update['lms_class_code'] = lms_class_code
+ data_update['date_update'] = str(datetime.now())
+
+ data_cle = {}
+ data_cle['internal_url'] = str(Class_To_Push['internal_url'])
+ data_cle['partner_owner_recid'] = str(Class_To_Push['partner_owner_recid'])
+ data_cle['valide'] = "1"
+ data_cle['locked'] = "0"
+
+ print(" #### data_cle 11 = ", data_cle)
+
+
+ local_ret_val = MYSY_GV.dbname['myclass'].find_one_and_update(data_cle,
+ {"$set": data_update},
+ upsert=False,
+ return_document=ReturnDocument.AFTER
+ )
+
+ if( local_ret_val is None or "_id" not in local_ret_val.keys() ):
+ mycommon.myprint(
+ " WARNING : Impossible de mettre à jour le partner_account avec le champs lms_class_code = "+str( lms_class_code) )
+
return True, " La formation " + str(lms_class_code) + "a été correctement Ajoutée/Mise à jour sur la plateforme de E-Learning"
diff --git a/main.py b/main.py
index 78e65ea..802e74e 100644
--- a/main.py
+++ b/main.py
@@ -3251,6 +3251,20 @@ def Add_Partner_Client():
return jsonify(status=localStatus, message=message)
+
+"""
+Creation en mass des clients d'un partner
+"""
+@app.route('/myclass/api/Add_Partner_Client_mass/', methods=['POST','GET'])
+@crossdomain(origin='*')
+def Add_Partner_Client_mass():
+ # On recupere le corps (payload) de la requete
+ payload = mycommon.strip_dictionary (request.form.to_dict())
+ print(" ### Add_Partner_Client_mass : payload = ",payload)
+ localStatus, message = partner_client.Add_Partner_Client_mass(payload)
+ return jsonify(status=localStatus, message=message)
+
+
"""
API de mise à jour du client d'un partner
"""
diff --git a/partner_client.py b/partner_client.py
index c68895c..758155c 100644
--- a/partner_client.py
+++ b/partner_client.py
@@ -871,3 +871,190 @@ def Get_Given_Partner_Client(diction):
+""""
+Cette fonction permet d'importer des clients de partner en masse avec un fichier excel
+"""
+def Add_Partner_Client_mass(file=None, Folder=None, diction=None):
+ try:
+ diction = mycommon.strip_dictionary(diction)
+
+ """
+ Verification des input acceptés
+ """
+ field_list = ['token', ]
+ 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'existe pas, Creation participants annulée")
+ return False, " Verifier votre API"
+
+ '''
+ Une fois qu'on a controlé que toutes les clés mise dans l'API sont correcte. etape precedente,
+ On controle que les champs obligatoires sont presents dans la liste
+ '''
+ 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, " Verifier votre API, Toutes les informations techniques ne sont pas fournies"
+
+ my_token = ""
+ if ("token" in diction.keys()):
+ if diction['token']:
+ my_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
+
+ status, saved_file = mycommon.Upload_Save_CSV_File(file, Folder)
+ if (status is False):
+ mycommon.myprint("Impossible de recuperer correctement le fichier à importer")
+ return False, "Impossible de recuperer correctement le fichier à importer"
+
+
+ df = pd.read_csv(saved_file, encoding='utf8', on_bad_lines='skip', sep=';', encoding_errors='ignore')
+
+ # Dictionnaire des champs utilisables
+ '''
+ # Verification que les noms des colonne sont bien corrects"
+ '''
+ field_list = ['nom', 'raison_sociale', 'email', 'adresse', 'code_postal', 'ville', 'pays', 'siret', 'telephone', 'tva', 'website', 'invoice_adresse',
+ 'invoice_code_postal', 'invoice_email', 'invoice_nom', 'invoice_siret', 'invoice_tva', 'invoice_ville', 'invoice_pays']
+
+ # Controle du nombre de lignes dans le fichier.
+ total_rows = len(df)
+ if (total_rows > MYSY_GV.MAX_PARTNER_CLIENT_BY_CSV):
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " Le fichier comporte plus de " + str(
+ MYSY_GV.MAX_PARTNER_CLIENT_BY_CSV) + " lignes.")
+ return False, " Le fichier comporte plus de " + str(MYSY_GV.MAX_PARTNER_CLIENT_BY_CSV) + " lignes."
+
+ for val in df.columns:
+ if str(val).lower() not in field_list:
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " : entete du fichier csv. '" + val + "' n'est pas acceptée")
+ return False, " Entete du fichier csv. '" + val + "' n'est pas acceptée"
+
+ # Verification des champs obligatoires dans le fichier
+ field_list_obligatoire_file = ['nom', 'email', 'adresse', 'code_postal', 'ville', 'pays', 'telephone', ]
+
+ for val in field_list_obligatoire_file:
+ if val not in df.columns:
+ mycommon.myprint(
+ str(inspect.stack()[0][
+ 3]) + " : Le champ '" + val + "' n'est pas présent dans le fichier. Il est obligatoire")
+ return False, " Le champ '" + val + "' n'est pas présent dans le fichier. Il est obligatoire "
+
+ # Traitement des données du fichier
+
+ warning_msg = ""
+ nb_warning_msg = 0
+ x = range(0, total_rows)
+ for n in x:
+ mydata = {}
+ mydata['nom'] = str(df['nom'].values[n])
+ mydata['email'] = str(df['email'].values[n])
+ mydata['adresse'] = str(df['adresse'].values[n])
+ mydata['code_postal'] = str(df['code_postal'].values[n])
+ mydata['ville'] = str(df['ville'].values[n])
+ mydata['pays'] = str(df['pays'].values[n])
+ mydata['telephone'] = str(df['telephone'].values[n])
+ mydata['token'] = str(my_token)
+
+ raison_sociale = ""
+ if ("raison_sociale" in df.keys()):
+ if (str(df['raison_sociale'].values[n])):
+ raison_sociale = str(df['raison_sociale'].values[n])
+ mydata['raison_sociale'] = raison_sociale
+
+ siret = ""
+ if ("siret" in df.keys()):
+ if (str(df['siret'].values[n])):
+ siret = str(df['siret'].values[n])
+ mydata['siret'] = siret
+
+ tva = ""
+ if ("tva" in df.keys()):
+ if (str(df['tva'].values[n])):
+ tva = str(df['tva'].values[n])
+ mydata['tva'] = tva
+
+ website = ""
+ if ("website" in df.keys()):
+ if (str(df['website'].values[n])):
+ website = str(df['website'].values[n])
+ mydata['website'] = website
+
+ invoice_adresse = ""
+ if ("invoice_adresse" in df.keys()):
+ if (str(df['invoice_adresse'].values[n])):
+ invoice_adresse = str(df['invoice_adresse'].values[n])
+ mydata['invoice_adresse'] = invoice_adresse
+
+ invoice_code_postal = ""
+ if ("invoice_code_postal" in df.keys()):
+ if (str(df['invoice_code_postal'].values[n])):
+ invoice_code_postal = str(df['invoice_code_postal'].values[n])
+ mydata['invoice_code_postal'] = invoice_code_postal
+
+ invoice_email = ""
+ if ("invoice_email" in df.keys()):
+ if (str(df['invoice_email'].values[n])):
+ invoice_email = str(df['invoice_email'].values[n])
+ mydata['invoice_email'] = invoice_email
+
+ invoice_nom = ""
+ if ("invoice_nom" in df.keys()):
+ if (str(df['invoice_nom'].values[n])):
+ invoice_nom = str(df['invoice_nom'].values[n])
+ mydata['invoice_nom'] = invoice_nom
+
+ invoice_siret = ""
+ if ("invoice_siret" in df.keys()):
+ if (str(df['invoice_siret'].values[n])):
+ invoice_siret = str(df['invoice_siret'].values[n])
+ mydata['invoice_siret'] = invoice_siret
+
+ invoice_tva = ""
+ if ("invoice_tva" in df.keys()):
+ if (str(df['invoice_tva'].values[n])):
+ invoice_tva = str(df['invoice_tva'].values[n])
+ mydata['invoice_tva'] = invoice_tva
+
+ invoice_ville = ""
+ if ("invoice_ville" in df.keys()):
+ if (str(df['invoice_ville'].values[n])):
+ invoice_ville = str(df['invoice_ville'].values[n])
+ mydata['invoice_ville'] = invoice_ville
+
+ invoice_pays = ""
+ if ("invoice_pays" in df.keys()):
+ if (str(df['invoice_pays'].values[n])):
+ invoice_pays = str(df['invoice_pays'].values[n])
+ mydata['invoice_pays'] = invoice_pays
+
+ clean_dict = {k: mydata[k] for k in mydata if (str(mydata[k]) != "nan")}
+
+ print("#### clean_dict ", clean_dict)
+ status, retval = Add_Partner_Client( clean_dict)
+
+ if (status is False):
+ warning_msg = warning_msg + " Line "+str(n)+" : "+str(retval)
+ nb_warning_msg = nb_warning_msg + 1
+
+
+ if( nb_warning_msg > 0 ):
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + "Toutes les lignes ont été correctement traités, sauf : "+str(warning_msg))
+ return True, "Toutes les lignes ont été correctement traités, sauf : "+str(warning_msg)
+
+
+ return True, " Toutes les lignes ont été correctement traitées"
+ except Exception as e:
+ exc_type, exc_obj, exc_tb = sys.exc_info()
+ mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno))
+ return False, " Impossible d'importer les client en masse "
\ No newline at end of file