29/07/23 - 29h

master
cherif 2023-07-29 22:16:49 +02:00
parent e7b1e6086e
commit f220c189e6
6 changed files with 962 additions and 6 deletions

View File

@ -4,7 +4,10 @@
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="28/07/23 - 19h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/email_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/email_mgt.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lms_chamilo/mysy_lms.py" beforeDir="false" afterPath="$PROJECT_DIR$/lms_chamilo/mysy_lms.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@ -1684931,3 +1684931,879 @@ INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 10:00:04] "POST /myclass/api/LMS_Get_Pa
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 -
INFO:root:2023-07-29 21:13:00.754844 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:13:00.755898 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:13:00.755898 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:13:00.755898 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:13:00.755898 : ++ 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 21:18:00.883982+02:00 (in 299.996399 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 21:13:09.444769 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:13:09.444769 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:13:09.444769 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:13:09.444769 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:13:09.444769 : ++ 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 21:18:09.497396+02:00 (in 299.997490 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:14:11.696022 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:11.697323 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:11.699917 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:11] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:11] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:11] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:12.624008 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:12.626009 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:12] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.218114 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.221246 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.225584 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.230586 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.234581 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.240312 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.245755 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.251465 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.255094 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.258593 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.264028 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.267585 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.276297 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.278313 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.282739 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.288908 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.293135 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.297427 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:13.302147 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:13.306679 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:51.687413 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:51] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:51.870355 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:51.873515 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:51] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:51.877636 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:14:51.882561 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:51] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:51] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:51.891580 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:51] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:14:52.028414 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:14:52] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:15:00.681718 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:15:00] "POST /myclass/api/check_partner_token_validity_v2/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:15:01.232973 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:15:01.236955 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:15:01] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:15:01.241001 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:15:01] "POST /myclass/api/get_List_metier_formation/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:15:01.246040 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:15:01] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:15:01] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:15:20.514609 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:15:20.750533 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'olfactothérapie invite à se mettre en chemin pour évoluer vers un plus gra...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:15:20] "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-29 21:17:51.437055 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:17:51.437055 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:17:51.437055 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:17:51.438075 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:17:51.438075 : ++ 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 21:22:51.502196+02:00 (in 299.997307 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
INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 21:18:00 CEST)" (scheduled at 2023-07-29 21:18:00.883982+02:00)
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 21:23:00.883982+02:00 (in 299.993080 seconds)
INFO:root:2023-07-29 21:18:00.896869 : samedi, 29. juillet 2023 09:18: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 21:23: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 21:18:11.310700 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:18:11.310700 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:18:11.310700 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:18:11.310700 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:18:11.311696 : ++ 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 21:23:11.369782+02:00 (in 299.998000 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 21:18:25.808418 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:18:25.808418 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:18:25.808418 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:18:25.808418 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:18:25.808418 : ++ 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 21:23:25.862740+02:00 (in 299.996992 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 21:19:00.320166 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:19:00.320166 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:19:00.321157 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:19:00.321157 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:19:00.321157 : ++ 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 21:24:00.376260+02:00 (in 299.997524 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 21:20:46.546126 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:20:46.546126 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:20:46.546126 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:20:46.546126 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:20:46.546126 : ++ 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 21:25:46.599700+02:00 (in 299.996996 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 21:21:05.729277 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:21:05.729277 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:21:05.729277 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:21:05.729277 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:21:05.729277 : ++ 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 21:26:05.861630+02:00 (in 299.996458 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:21:34.811878 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:21:34.814470 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:21:34.817565 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:21:34.820566 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:21:34] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:21:34] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:21:34.833229 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:21:34] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:21:34] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:21:35.288665 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:21:35] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:21:40.204796 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:21:40.240782 : La mise à jour n'est pas autorisée. lms_class_code 46a77b434e
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:21:40] "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-29 21:28:00.883982+02:00 (in 299.994010 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 21:28:00 CEST)" (scheduled at 2023-07-29 21:23:00.883982+02:00)
INFO:root:2023-07-29 21:23:00.892621 : samedi, 29. juillet 2023 09:23: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 21:28: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.
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 21:26:05 CEST)" (scheduled at 2023-07-29 21:26:05.861630+02:00)
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 21:31:05.861630+02:00 (in 299.987701 seconds)
INFO:root:2023-07-29 21:26:05.876946 : samedi, 29. juillet 2023 09:26: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-29 21:31: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-29 21:33:00.883982+02:00 (in 299.995639 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 21:33:00 CEST)" (scheduled at 2023-07-29 21:28:00.883982+02:00)
INFO:root:2023-07-29 21:28:00.890354 : samedi, 29. juillet 2023 09:28: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 21:33: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 21:30:20.686597 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:30:20.689126 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:30:20.692129 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:30:20] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:30:20.697117 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:30:20.701657 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:30:20] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:30:20] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:30:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:30:21.186762 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:30:21] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:30:27.029159 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:30:27.999368 : Push_Class_To_MySy_LMS -'mots_cle' - Line : 3782
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:30:28] "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-29 21:31:04.813492 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:31:04.814522 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:31:04.814522 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:31:04.814522 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:31:04.814522 : ++ 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 21:36:04.961443+02:00 (in 299.996008 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:31:08.796963 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:31:09.090659 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'olfactothérapie invite à se mettre en chemin pour évoluer vers un plus gra...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:31:09] "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-29 21:38:00.883982+02:00 (in 299.991606 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 21:38:00 CEST)" (scheduled at 2023-07-29 21:33:00.883982+02:00)
INFO:root:2023-07-29 21:33:00.894433 : samedi, 29. juillet 2023 09:33: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 21:38: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.
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 21:36:04 CEST)" (scheduled at 2023-07-29 21:36:04.961443+02:00)
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 21:41:04.961443+02:00 (in 299.983024 seconds)
INFO:root:2023-07-29 21:36:04.981199 : samedi, 29. juillet 2023 09:36: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-29 21:41: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.
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 21:43:00.883982+02:00 (in 299.991706 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 21:43:00 CEST)" (scheduled at 2023-07-29 21:38:00.883982+02:00)
INFO:root:2023-07-29 21:38:00.894276 : samedi, 29. juillet 2023 09:38: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 21:43: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 21:38:05.220297 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:38:05.220297 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:38:05.220297 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:38:05.220297 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:38:05.220297 : ++ 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 21:43:05.279679+02:00 (in 299.997863 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:38:21.135170 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:38:21.138564 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:38:21.143623 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:38:21.147157 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:21] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:38:21.157781 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:21] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:21] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:38:21.603235 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:21] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:38:54.378057 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:38:54.380921 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:54] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:38:54.386648 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:38:54.388638 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:38:54.393185 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:54] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:54] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:38:54.780144 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:38:54] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:39:02.456098 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:39:02.629381 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'anatomie,\\ de\\ la\\ physiologie\\ et\\ de\\ la\\ biochimie,\\ afin\\ d\\&rsquo;\\&ecir...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:39:02] "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-29 21:48:00.883982+02:00 (in 299.993681 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 21:48:00 CEST)" (scheduled at 2023-07-29 21:43:00.883982+02:00)
INFO:root:2023-07-29 21:43:00.893374 : samedi, 29. juillet 2023 09:43: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 21:48: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.
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 21:43:05 CEST)" (scheduled at 2023-07-29 21:43:05.279679+02:00)
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 21:48:05.279679+02:00 (in 299.985051 seconds)
INFO:root:2023-07-29 21:43:05.297114 : samedi, 29. juillet 2023 09:43: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-29 21:48: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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 21:43:54.713268 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:43:54.714271 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:43:54.714271 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:43:54.714271 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:43:54.714271 : ++ 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 21:48:54.768024+02:00 (in 299.997999 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 21:44:53.903256 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:44:53.903256 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:44:53.903256 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:44:53.903256 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:44:53.903256 : ++ 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 21:49:53.960826+02:00 (in 299.996778 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:45:51.639997 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:45:51.871904 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'olfactothérapie invite à se mettre en chemin pour évoluer vers un plus gra...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:45:51] "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-29 21:53:00.883982+02:00 (in 299.994504 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 21:53:00 CEST)" (scheduled at 2023-07-29 21:48:00.883982+02:00)
INFO:root:2023-07-29 21:48:00.891499 : samedi, 29. juillet 2023 09:48: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 21:53: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:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 21:48:49.651957 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:48:49.651957 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:48:49.651957 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:48:49.651957 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:48:49.651957 : ++ 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 21:53:49.705510+02:00 (in 299.997950 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:49:56.559819 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:49:56.563824 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:49:56.567917 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:49:56.574122 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:49:56] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:49:56] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:49:56.587622 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:49:56] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:49:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:49:57.000416 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:49:57] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 21:49:59.845363 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:50:00.075484 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'anatomie, de la physiologie et de la biochimie, afin d&rsquo;&ecirc;tre capab...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:50:00] "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-29 21:58:00.883982+02:00 (in 299.991057 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 21:58:00 CEST)" (scheduled at 2023-07-29 21:53:00.883982+02:00)
INFO:root:2023-07-29 21:53:00.894915 : samedi, 29. juillet 2023 09:53: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 21:58: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.
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 21:53:49 CEST)" (scheduled at 2023-07-29 21:53:49.705510+02:00)
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 21:58:49.705510+02:00 (in 299.989974 seconds)
INFO:root:2023-07-29 21:53:49.718293 : samedi, 29. juillet 2023 09:53:49 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR.
ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 21:58:49 CEST)" raised an exception
Traceback (most recent call last):
File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 21:57:45.962499 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 21:57:45.962499 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 21:57:45.962499 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 21:57:45.962499 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 21:57:45.962499 : ++ 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 22:02:46.089008+02:00 (in 299.997934 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 21:57:46.133096 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 21:57:47.055412 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'olfactothérapie invite à se mettre en chemin pour évoluer vers un plus gra...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 21:57:47] "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-29 22:03:00.883982+02:00 (in 299.996003 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 22:03:00 CEST)" (scheduled at 2023-07-29 21:58:00.883982+02:00)
INFO:root:2023-07-29 21:58:00.889749 : samedi, 29. juillet 2023 09:58: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 22:03: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:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 22:00:38.978095 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:00:38.978095 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:00:38.978095 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:00:38.978095 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:00:38.978095 : ++ 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 22:05:39.034094+02:00 (in 299.997973 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 22:01:28.678705 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 22:01:28.683159 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 22:01:28.686155 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 22:01:28.689156 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:01:28] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:01:28] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
INFO:root:2023-07-29 22:01:28.700892 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:01:28] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:01:28] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
INFO:root:2023-07-29 22:01:29.376358 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:01:29] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
INFO:root:2023-07-29 22:01:35.530030 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 22:01:35.713932 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'anatomie, de la physiologie et de la biochimie, afin d\\être capable de pr...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:01:35] "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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 22:08:00.883982+02:00 (in 299.997452 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 22:08:00 CEST)" (scheduled at 2023-07-29 22:03:00.883982+02:00)
INFO:root:2023-07-29 22:03:00.889503 : samedi, 29. juillet 2023 10:03: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 22:08: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 22:03:04.053949 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:03:04.053949 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:03:04.053949 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:03:04.053949 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:03:04.053949 : ++ 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 22:08:04.110133+02:00 (in 299.997942 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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 22:03:30.012448 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:03:30.012448 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:03:30.012448 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:03:30.012448 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:03:30.012448 : ++ 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 22:08:30.068003+02:00 (in 299.997263 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 22:03:42.886626 : Security check : IP adresse '127.0.0.1' connected
INFO:root:2023-07-29 22:03:43.159520 : Impossible de créer la formation dans le LMS (6){ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'olfactothérapie invite à se mettre en chemin pour évoluer vers un plus gra...' at line 1")}
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:03:43] "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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 22:06:16.620264 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:06:16.620264 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:06:16.620264 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:06:16.620264 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:06:16.621268 : ++ 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 22:11:16.677956+02:00 (in 299.996987 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 22:13:00.883982+02:00 (in 299.987303 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 22:13:00 CEST)" (scheduled at 2023-07-29 22:08:00.883982+02:00)
INFO:root:2023-07-29 22:08:00.898667 : samedi, 29. juillet 2023 10:08: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 22:13: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.
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 22:11:16 CEST)" (scheduled at 2023-07-29 22:11:16.677956+02:00)
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 22:16:16.677956+02:00 (in 299.991713 seconds)
INFO:root:2023-07-29 22:11:16.703339 : samedi, 29. juillet 2023 10:11:16 : 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 22:16:16 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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 22:12:41.979019 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:12:41.979019 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:12:41.979019 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:12:41.979019 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:12:41.979019 : ++ 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 22:17:42.031609+02:00 (in 299.996980 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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 22:18:00.883982+02:00 (in 299.986081 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 22:18:00 CEST)" (scheduled at 2023-07-29 22:13:00.883982+02:00)
INFO:root:2023-07-29 22:13:00.900801 : samedi, 29. juillet 2023 10:13: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 22:18: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 22:13:03.622286 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:13:03.622286 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:13:03.622286 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:13:03.622286 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:13:03.622286 : ++ 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 22:18:03.675299+02:00 (in 299.997986 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117
INFO:root:2023-07-29 22:13:34.271841 : Security check : IP adresse '127.0.0.1' connected
INFO:werkzeug:127.0.0.1 - - [29/Jul/2023 22:13: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\\prj_common.py', reloading
INFO:apscheduler.scheduler:Scheduler has been shut down
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:werkzeug: * Restarting with stat
INFO:root:2023-07-29 22:16:19.946855 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
INFO:root:2023-07-29 22:16:19.950878 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
INFO:root:2023-07-29 22:16:19.950878 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
INFO:root:2023-07-29 22:16:19.950878 : ++ FLASK PORT 5001 ++
INFO:root:2023-07-29 22:16:19.950878 : ++ 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 22:21:20.084495+02:00 (in 299.991958 seconds)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 101-758-117

View File

@ -625,7 +625,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
# Recuperation des info de la formation.
formation_data = MYSY_GV.dbname['myclass'].find_one({'internal_url': str(class_internal_url)})
formation_data = MYSY_GV.dbname['myclass'].find_one({'internal_url': str(class_internal_url), 'valide':'1', 'locked':'0'})
if (formation_data is None):
mycommon.myprint(
str(inspect.stack()[0][
@ -635,6 +635,10 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
x = range(0, total_rows)
ignored_line = ""
nb_inserted_line = 0
formation_data_lms_class_code = ""
if( "lms_class_code" in formation_data.keys()):
formation_data_lms_class_code = formation_data['lms_class_code']
for n in x:
mydata = {}
@ -725,11 +729,17 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
local_adresse = str(df['adresse'].values[n]).strip()
mydata['adresse'] = local_adresse
lms_class_code = ""
""" lms_class_code = ""
if ("lms_class_code" in df.keys()):
if (str(df['lms_class_code'].values[n])):
lms_class_code = str(df['lms_class_code'].values[n]).strip()
mydata['lms_class_code'] = lms_class_code
mydata['lms_class_code'] = lms_class_code """
""" Update du 29/07/23 :
le lms_class_code est pris sur la formation, donc impossible de faire une mise à jour directe sur la session.
Ceci est lié au fait que c'est une formation qui est sur la plateforme LMS
"""
mydata['lms_class_code'] = formation_data_lms_class_code
session_ondemande = ""
if ("session_ondemande" in df.keys()):

View File

@ -1790,6 +1790,7 @@ def SendEmargementMail( diction):
for my_emarge_id in tab_my_emarge_ids :
# Recuperation des infos de l'emargement
print("my_emarge_id = " + str(my_emarge_id))
val_emarge = MYSY_GV.dbname['emargement'].find_one({'_id':ObjectId(my_emarge_id)})
print("val_emarge = "+str(val_emarge))
print("ID = " + str(val_emarge['_id']))

View File

@ -2809,7 +2809,7 @@ def Lms_Add_BG_File(file=None, Folder=None, diction=None):
"""
Cette fonction permet de créer et/ou publier une formation en partant depuis le lms.
Cette fonction permet de créer et/ou publier une formation en partant depuis du LMS vers le Search
Algorithme :
Etape 1 :
@ -3090,6 +3090,14 @@ def Create_Class_From_Lms(diction):
if (local_status is False):
return local_status, local_retval
# Pour finir, on ajoute 'lms_class_code' à la formation dans la collection myclass.
MYSY_GV.dbname['myclass'].find_one_and_update({'internal_url':str(new_diction_session['class_internal_url']), 'valide':'1', 'locked':'0'},
{"$set": {'lms_class_code':str(local_class_code)}, 'date_update':str(datetime.now())},
upsert=False,
return_document=ReturnDocument.AFTER
)
return True, " La formation a bien été créée/mise à jour dans le moteur de recherche"
except Exception as e:
@ -3526,6 +3534,7 @@ def Push_Class_To_MySy_LMS(diction):
data_to_push['prerequis'] = Class_To_Push['prerequis']
data_to_push['pourqui'] = Class_To_Push['pourqui']
data_to_push['programme'] = Class_To_Push['programme']
data_to_push['mots_cle'] = Class_To_Push['mots_cle']
data_to_push['internal_url'] = Class_To_Push['internal_url']
data_to_push['plus_produit'] = Class_To_Push['plus_produit']
data_to_push['mysy_lms_user_id'] = my_partner['mysy_lms_user_id']
@ -3716,7 +3725,7 @@ def Push_Class_To_MySy_LMS(diction):
except mariadb.Error as e:
# print(f"Error: {e}")
mycommon.myprint(" Impossible de créer la formation dans le LMS (6)" + str({e}))
return False, " Impossible de créer la formation dans le LMS (4) " + str({e})
return False, " Impossible de créer la formation dans le LMS (6) " + str({e})
conn.commit()
@ -3745,6 +3754,44 @@ def Push_Class_To_MySy_LMS(diction):
mycommon.myprint(
" WARNING : Impossible de mettre à jour le partner_account avec le champs lms_class_code = "+str( lms_class_code) )
"""
A présent que la formation est correctement poussée dans le LMS, on va mettre à jour les champs : ['description', 'objectif', 'prerequis', 'pourqui', 'programme', 'plus_produit']
"""
"""
Recuperation du dernier iid de la table c_course_description
"""
query_max_c_course_description = " SELECT max(iid) FROM c_course_description "
cur.execute(query_max_c_course_description)
max_c_course_description_id = ""
for query_max_c_course_description_val in cur:
max_c_course_description_id = query_max_c_course_description_val[0]
if (int(mycommon.tryInt(max_c_course_description_id)) <= 0):
mycommon.myprint(
" WARNING : Impossible de recuperer le max_c_course_description_id ")
qry_insert_c_course_description = "INSERT INTO c_course_description (id,c_id,title,content,session_id,description_type,progress) VALUES " \
"('"+str(int(mycommon.tryInt(max_c_course_description_id)) + 1)+"','"+ str(new_class_id)+"','Description','"+mycommon.Clean_For_SQL( str(data_to_push['description']) )+"',0,1,0), " \
"('"+str(int(mycommon.tryInt(max_c_course_description_id)) + 2)+"','"+ str(new_class_id)+"','Objectif','"+mycommon.Clean_For_SQL(str(data_to_push['objectif']))+"',0,8,0), " \
"('"+str(int(mycommon.tryInt(max_c_course_description_id)) + 4)+"','"+ str(new_class_id)+"','Programme','"+mycommon.Clean_For_SQL(str(data_to_push['programme']))+"',0,8,0), " \
"('"+str(int(mycommon.tryInt(max_c_course_description_id)) + 6)+"','"+ str(new_class_id)+"','Pourqui','"+mycommon.Clean_For_SQL(str(data_to_push['pourqui']))+"',0,8,0), " \
"('"+str(int(mycommon.tryInt(max_c_course_description_id)) + 7)+"','"+ str(new_class_id)+"','Mots clés','"+mycommon.Clean_For_SQL(str(data_to_push['mots_cle']))+"',0,8,0), " \
"('"+str(int(mycommon.tryInt(max_c_course_description_id)) + 8)+"','"+ str(new_class_id)+"','Avantage comparatif','"+mycommon.Clean_For_SQL(str(data_to_push['plus_produit']))+"',0,8,0); "
print(" ### qry_insert_c_course_description = ", qry_insert_c_course_description)
try:
cur.execute(qry_insert_c_course_description)
except mariadb.Error as e:
# print(f"Error: {e}")
mycommon.myprint(" Impossible de créer la formation dans le LMS (6)" + str({e}))
return False, " Impossible de créer la formation dans le LMS (6) " + str({e})
conn.commit()
return True, " La formation " + str(lms_class_code) + "a été correctement Ajoutée/Mise à jour sur la plateforme de E-Learning"

View File

@ -3139,4 +3139,23 @@ def Check_Connexion_And_Return_Partner_Data(diction):
except Exception as e:
exc_type, exc_obj, exc_tb = sys.exc_info()
myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
return False, " Impossible de verifier la connexion"
return False, " Impossible de verifier la connexion"
"""
Cette fonction fait un escape et clean les string avant injection SQL
"""
def Clean_For_SQL(sentence):
try:
h = html.parser
sentence = h.unescape(sentence)
sentence = sentence.replace("'", "\'").replace('"', ' ').replace("", "\").replace("'", " ")
return sentence
except Exception as e:
exc_type, exc_obj, exc_tb = sys.exc_info()
myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
return ""