diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 01816cc..1f1a9c4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,10 +1,10 @@ - + - + @@ -426,7 +426,6 @@ - @@ -451,6 +450,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 1628a11..e57d8fa 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1684359,3 +1684359,575 @@ INFO:root:2023-07-28 19:43:23.865475 : Security check : IP adresse '127.0.0.1' INFO:werkzeug:127.0.0.1 - - [28/Jul/2023 19:43:23] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - INFO:root:2023-07-28 19:43:23.914138 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [28/Jul/2023 19:43:23] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2023-07-29 09:23:24.199442 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:23:24.200449 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:23:24.201454 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:23:24.201454 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:23:24.201454 : ++ 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-29 09:28:24.354806+02:00 (in 299.992398 seconds) +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-29 09:23:38.518224 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:23:38.518224 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:23:38.518224 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:23:38.518224 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:23:38.518224 : ++ 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-29 09:28:38.593116+02:00 (in 299.996877 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-29 09:23:47.592193 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:47.595367 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:47.596380 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:47] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:47] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:47] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:48.412356 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:48.414661 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:48.417652 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:48] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:48] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:48] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:48.971300 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:48.974299 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:49] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:49.270768 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:49.274194 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:49] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.016640 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.025049 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.028064 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.031322 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.037674 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.047219 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.057565 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.060053 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.067532 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.073547 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.083513 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.092969 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.098468 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.109017 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.139731 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.150475 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.158811 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.165490 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.170949 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.184186 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.417763 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.422914 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.428189 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.434183 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.441188 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.448183 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.740469 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.747299 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:50.747299 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.756554 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.761746 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:50.766294 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:50] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:51.050336 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:51.059169 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:51.060165 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:51.069549 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:51.076521 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:51.080984 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:51.358205 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:51.374726 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:55.412495 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:55] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:55.621050 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:55.625915 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:23:55.629941 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:55] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:55.635874 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:55] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:55.645906 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:55] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:23:56.022060 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:23:56] "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-29 09:28:24 CEST)" (scheduled at 2023-07-29 09:28:24.354806+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 09:33:24.354806+02:00 (in 299.998410 seconds) +INFO:root:2023-07-29 09:28:24.362029 : samedi, 29. juillet 2023 09:28: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-29 09:33: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 +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:28:38 CEST)" (scheduled at 2023-07-29 09:28:38.593116+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 09:33:38.593116+02:00 (in 299.996662 seconds) +INFO:root:2023-07-29 09:28:38.598294 : samedi, 29. juillet 2023 09:28:38 : 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-29 09:33:38 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-29 09:38:24.354806+02:00 (in 299.994497 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:38:24 CEST)" (scheduled at 2023-07-29 09:33:24.354806+02:00) +INFO:root:2023-07-29 09:33:24.363362 : samedi, 29. juillet 2023 09:33: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-29 09:38: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-29 09:38:38.593116+02:00 (in 299.995631 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:38:38 CEST)" (scheduled at 2023-07-29 09:33:38.593116+02:00) +INFO:root:2023-07-29 09:33:38.598627 : samedi, 29. juillet 2023 09:33:38 : 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-29 09:38:38 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-29 09:35:48.921716 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:35:48.921716 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:35:48.922714 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:35:48.922714 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:35:48.922714 : ++ 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-29 09:40:49.049352+02:00 (in 299.994006 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-29 09:37:42.885410 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:37:42.885410 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:37:42.885410 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:37:42.885410 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:37:42.885410 : ++ 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-29 09:42:42.944301+02:00 (in 299.996998 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-29 09:38:10.897040 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:38:10.897040 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:38:10.897040 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:38:10.897040 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:38:10.897040 : ++ 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-29 09:43:10.951631+02:00 (in 299.997994 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 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 09:43:24.354806+02:00 (in 299.985787 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:43:24 CEST)" (scheduled at 2023-07-29 09:38:24.354806+02:00) +INFO:root:2023-07-29 09:38:24.374419 : samedi, 29. juillet 2023 09:38: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-29 09:43: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. +INFO:root:2023-07-29 09:38:32.596167 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:38:32.597162 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:38:32.597162 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:38:32.597162 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:38:32.597162 : ++ 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-29 09:43:32.655851+02:00 (in 299.996494 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-29 09:48:24.354806+02:00 (in 299.991083 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:48:24 CEST)" (scheduled at 2023-07-29 09:43:24.354806+02:00) +INFO:root:2023-07-29 09:43:24.365831 : samedi, 29. juillet 2023 09:43: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-29 09:48: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 +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:43:32 CEST)" (scheduled at 2023-07-29 09:43:32.655851+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 09:48:32.655851+02:00 (in 299.998487 seconds) +INFO:root:2023-07-29 09:43:32.663674 : samedi, 29. juillet 2023 09:43:32 : 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-29 09:48:32 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-29 09:44:44.109196 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:44:44.109196 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:44:44.110211 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:44:44.110211 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:44:44.110211 : ++ 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-29 09:49:44.171209+02:00 (in 299.997001 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-29 09:45:31.254742 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:45:31.255743 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:45:31.255743 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:45:31.255743 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:45:31.255743 : ++ 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-29 09:50:31.359703+02:00 (in 299.995526 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-29 09:46:11.222987 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:46:11.222987 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:46:11.222987 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:46:11.222987 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:46:11.222987 : ++ 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-29 09:51:11.282512+02:00 (in 299.996881 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-29 09:46:33.585994 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:46:33.585994 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:46:33.585994 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:46:33.585994 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:46:33.585994 : ++ 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-29 09:51:33.639446+02:00 (in 299.997362 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-29 09:53:24.354806+02:00 (in 299.987039 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:53:24 CEST)" (scheduled at 2023-07-29 09:48:24.354806+02:00) +INFO:root:2023-07-29 09:48:24.369765 : samedi, 29. juillet 2023 09:48: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-29 09:53: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 +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:51:33 CEST)" (scheduled at 2023-07-29 09:51:33.639446+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 09:56:33.639446+02:00 (in 299.988047 seconds) +INFO:root:2023-07-29 09:51:33.657648 : samedi, 29. juillet 2023 09:51:33 : 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-29 09:56:33 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-29 09:58:24.354806+02:00 (in 299.993929 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 09:58:24 CEST)" (scheduled at 2023-07-29 09:53:24.354806+02:00) +INFO:root:2023-07-29 09:53:24.362882 : samedi, 29. juillet 2023 09:53: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-29 09:58: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. +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-29 09:55:00.070057 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-29 09:55:00.070057 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-29 09:55:00.070057 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-29 09:55:00.070057 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-29 09:55:00.070057 : ++ 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-29 10:00:00.133056+02:00 (in 299.996492 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-29 10:03:24.354806+02:00 (in 299.988837 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 10:03:24 CEST)" (scheduled at 2023-07-29 09:58:24.354806+02:00) +INFO:root:2023-07-29 09:58:24.367891 : samedi, 29. juillet 2023 09:58: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-29 10:03: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. +INFO:root:2023-07-29 09:59:37.747814 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:59:37.749145 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:59:37.752474 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 09:59:37.757436 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:59:37] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:59:37.765641 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:59:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:59:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:59:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:59:38.143076 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:59:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-29 09:59:54.027884 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 09:59:54] "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-29 10:00:00 CEST)" (scheduled at 2023-07-29 10:00:00.133056+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 10:05:00.133056+02:00 (in 299.984272 seconds) +INFO:root:2023-07-29 10:00:00.151794 : samedi, 29. juillet 2023 10:00:00 : 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-29 10:05:00 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-29 10:00:04.672443 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 10:00:04.675914 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 10:00:04] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-29 10:00:04.681251 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 10:00:04.683205 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-29 10:00:04.687352 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 10:00:04] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 10:00:04] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 10:00:04] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-29 10:00:05.174150 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 10:00:05] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - diff --git a/lms_chamilo/mysy_lms.py b/lms_chamilo/mysy_lms.py index 8914a6d..4002344 100644 --- a/lms_chamilo/mysy_lms.py +++ b/lms_chamilo/mysy_lms.py @@ -3530,7 +3530,9 @@ 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['mysy_search_published'] = Class_To_Push['published'] data_to_push['partner_owner_recid'] = Class_To_Push['partner_owner_recid'] + data_to_push['full_internal_url'] = str(MYSY_GV.CLIENT_URL_BASE) + str("Display-Detail-formation/") + str(Class_To_Push['internal_url']) query_insert_class = "" if( update_push is False): @@ -3539,11 +3541,13 @@ def Push_Class_To_MySy_LMS(diction): query_insert_class = "INSERT INTO course SET code='"+str( data_to_push['lms_class_code'] )+"' , " \ "visibility='2'," \ "title = '"+str(data_to_push['title'])+"', " \ - "directory = '"+str( data_to_push['lms_class_code'] )+"', " \ + "mysy_search_published = '" + str(data_to_push['mysy_search_published']) + "', " \ + "directory = '"+str( data_to_push['lms_class_code'] )+"', " \ "course_language = 'french', " \ "disk_quota = '100000000', " \ - "subscribe = '1', " \ - "description='" + str( data_to_push['title']) + "', " \ + "full_internal_url = '"+str(data_to_push['full_internal_url'])+"', " \ + "subscribe = '1', " \ + "description='" + str( data_to_push['title']) + "', " \ "creation_date ='" + str(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) + "', " \ "internal_url = '"+str(data_to_push['internal_url'])+"'," \ " visual_code = '"+str( data_to_push['lms_class_code'] )+"';" \ @@ -3629,7 +3633,7 @@ def Push_Class_To_MySy_LMS(diction): conn.commit() """ - Insertion dans la table : course_setting + Insertion dans la table : c_course_setting """ query_insert_course_setting = " INSERT INTO c_course_setting (id,c_id,variable,subkey,`type`,category,value,title,comment,subkeytext) VALUES " \ " (1, '"+ str(new_class_id) +"', 'email_alert_manager_on_new_doc',NULL,NULL,'work','0','',NULL,NULL), " \