Validation 18/03/22 - 10h21

master
ChérifBALDE 2022-03-18 09:54:08 +01:00 committed by cherif
parent bee0ca6d70
commit a8a14b426e
3 changed files with 115 additions and 4 deletions

View File

@ -277332,3 +277332,79 @@ INFO:root:2022-03-17 21:13:45.914222 : store_recherche La recherche a
INFO:root:2022-03-17 21:13:46.038355 : pour phrase : #InDesign#, voici la liste des formations
INFO:root:2022-03-17 21:13:46.038355 : ['PA17219', 'PA12219', 'PA12019', 'IND01', 'IND02', 'IND04', 'IND05', 'PAO05', '7347', '4875', '6721', '1246']
INFO:werkzeug:127.0.0.1 - - [17/Mar/2022 21:13:46] "POST /myclass/api/recherche_text_simple/ HTTP/1.1" 200 -
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:04:11] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:04:20.306827 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:04:20.306827', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:04:20.311785 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:04:20] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:05:03.376970 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:05:03.376970', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:05:03.379960 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:05:03] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:16:50.472041 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:16:50.472041', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:16:50.473746 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:16:50] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:20:15.825688 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:20:15.825688', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:20:15.854696 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:20:15] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:22:43.624215 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:22:43.624215', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:22:43.627235 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:22:43] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:23:57.192190 : Le message a été bien enregistrée. Id message = '6234419d70d86527c9b8113c'
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:23:57] "POST /myclass/api/add_user_message/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\ChérifBALDE\\Documents\\myclass.com\\Siteweb\\Developpement\\Ela_back\\MySy_Back_Office\\user_message_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:werkzeug: * Detected change in 'C:\\Users\\ChérifBALDE\\Documents\\myclass.com\\Siteweb\\Developpement\\Ela_back\\MySy_Back_Office\\user_message_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:werkzeug: * Detected change in 'C:\\Users\\ChérifBALDE\\Documents\\myclass.com\\Siteweb\\Developpement\\Ela_back\\MySy_Back_Office\\wrapper.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:root:2022-03-18 09:33:29.530426 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:33:29.530426', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:33:29.532422 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:33:29] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:34:14.492050 : Le message a été bien enregistrée. Id message = '62344406f240809d22d8b546'
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:34:14] "POST /myclass/api/add_user_message/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\ChérifBALDE\\Documents\\myclass.com\\Siteweb\\Developpement\\Ela_back\\MySy_Back_Office\\user_message_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:werkzeug: * Detected change in 'C:\\Users\\ChérifBALDE\\Documents\\myclass.com\\Siteweb\\Developpement\\Ela_back\\MySy_Back_Office\\user_message_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:root:2022-03-18 09:39:20.484847 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:39:20.484847', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:39:20.486870 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:39:20] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:39:32.599142 : ici Le message a été bien enregistrée. Id message = '62344544cbe6f8a6e6c9c221'
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:39:32] "POST /myclass/api/add_user_message/ HTTP/1.1" 200 -
INFO:werkzeug: * Detected change in 'C:\\Users\\ChérifBALDE\\Documents\\myclass.com\\Siteweb\\Developpement\\Ela_back\\MySy_Back_Office\\user_message_mgt.py', reloading
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 635-523-053
INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:root:2022-03-18 09:41:58.324094 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '88.170.110.220', 'user_country_code': 'FR', 'user_country_name': 'France', 'user_city': 'Villeneuve-Saint-Georges', 'user_postal': '94190', 'user_latitude': '48.7322', 'user_longitude': '2.4493', 'user_state': 'Val-de-Marne', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:41:58.324094', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:41:58.326090 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:41:58] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:42:03.536127 : COMBINED = {'external_code': 'VP14120', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-03-18 09:42:03.536127', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('61f10781c689ebcc85ffe36f')}
INFO:root:2022-03-18 09:42:03.537094 : {'_id': ObjectId('61f10781c689ebcc85ffe36f'), 'external_code': 'VP14120', 'title': "L'essentiel d'After Effects", 'trainer': 'PYRAMYD', 'type': 'mixte', 'support': 'video', 'presentiel': {'presentiel': '1', 'distantiel': '0'}, 'location': {'rue': '2, avenue de la republique', 'ville': 'Paris', 'cp': '75009', 'pays': 'France'}, 'institut_formation': 'PYRAMYD', 'price': 1660, 'url': 'https://pyramyd-formation.com/formation/l-essentiel-d-after-effects', 'duree_formation': '3', 'lang': 'fr', 'certif': 'oui', 'indexed': '1', 'indexed_desc': '1', 'indexed_obj': '0', 'description': 'Réaliser et créer des animations simples', 'indexed_title': '1', 'valide': '1', 'locked': '0', 'partner_owner_recid': '1ba5aacb6f00d37cf9017858118d281ab8776dbd7916ae1899', 'date_update': '2022-02-21 16:26:59.692103', 'token': 'UWfAk6LFOB5Dmw6SyUD3Vpzj_2Im3kXT7Q'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:42:03] "POST /myclass/api/get_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:42:14.301954 : Le message a été bien enregistrée. Id message = '623445e6390b1ff39c9488d6'
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:42:14] "POST /myclass/api/add_user_message/ HTTP/1.1" 200 -
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:52:44] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
INFO:root:2022-03-18 09:52:55.540054 : COMBINED = {'external_code': '8916', 'token': 'BEPhx298xmQFIBKDL7lcu3NCsuOr8QhZ4w', 'user_ip': '', 'user_country_code': '', 'user_country_name': '', 'user_city': '', 'user_postal': '', 'user_latitude': '', 'user_longitude': '', 'user_state': '', 'date_update': '2022-03-18 09:52:55.540054', 'description': 'Échangez sur les bonnes pratiques et les astuces.Accédez à des fiches de méthodes complémentaires.Téléchargez la fiche outil de la formation.', 'duree_formation': '3heures', 'indexed': '0', 'indexed_desc': '0', 'indexed_obj': '0', 'indexed_title': '0', 'is_best': 'Best', 'is_cpf': 'CPF', 'is_new': 'New', 'lang': 'fr', 'locked': '0', 'notation': '\xa03.4/5 ', 'notation_count': '(23 avis)', 'objectif': ' Les objectifs de la formation Comprendre les usages et le potentiel de Linkedln.Créer ou optimiser son profil Linkedln.Acquérir les principes clés fondamentaux pour optimiser son réseau et sa notoriété sur Linkedln.', 'owner': 'cegos', 'partner_owner_recid': 'bde8af5ba4d64987784afe464c436a7d84b37872ce8f336587', 'pedagogie': 'Évaluation des compétences acquises via un questionnaire en ligne.', 'pointsfort': '', 'presentiel': {'presentiel': '1', 'distantiel': '1'}, 'price': 365, 'title': '3 h chrono pour créer un profil personnel efficace sur LinkedIn', 'trainer': 'cegos', 'url': 'https://www.cegos.fr/formations/formations/web/formations/marketing-marketing-digital/3-h-chrono-pour-creer-un-profil-personnel-efficace-sur-linkedin', 'valide': '1', 'user_rec_id': 'None', 'type_view': 'detail', 'class_id': ObjectId('62344800a3d8929813d74c44')}
INFO:root:2022-03-18 09:52:55.541043 : {'_id': ObjectId('62344800a3d8929813d74c44'), 'external_code': '8916', 'date_update': '2022-03-18 09:51:12.930802', 'description': 'Échangez sur les bonnes pratiques et les astuces.Accédez à des fiches de méthodes complémentaires.Téléchargez la fiche outil de la formation.', 'duree_formation': '3heures', 'indexed': '0', 'indexed_desc': '0', 'indexed_obj': '0', 'indexed_title': '0', 'is_best': 'Best', 'is_cpf': 'CPF', 'is_new': 'New', 'lang': 'fr', 'locked': '0', 'notation': '\xa03.4/5 ', 'notation_count': '(23 avis)', 'objectif': ' Les objectifs de la formation Comprendre les usages et le potentiel de Linkedln.Créer ou optimiser son profil Linkedln.Acquérir les principes clés fondamentaux pour optimiser son réseau et sa notoriété sur Linkedln.', 'owner': 'cegos', 'partner_owner_recid': 'bde8af5ba4d64987784afe464c436a7d84b37872ce8f336587', 'pedagogie': 'Évaluation des compétences acquises via un questionnaire en ligne.', 'pointsfort': '', 'presentiel': {'presentiel': '1', 'distantiel': '1'}, 'price': 365, 'title': '3 h chrono pour créer un profil personnel efficace sur LinkedIn', 'token': 'BEPhx298xmQFIBKDL7lcu3NCsuOr8QhZ4w', 'trainer': 'cegos', 'url': 'https://www.cegos.fr/formations/formations/web/formations/marketing-marketing-digital/3-h-chrono-pour-creer-un-profil-personnel-efficace-sur-linkedin', 'valide': '1'}
INFO:werkzeug:127.0.0.1 - - [18/Mar/2022 09:52:55] "POST /myclass/api/get_class/ HTTP/1.1" 200 -

View File

@ -12,7 +12,7 @@ from datetime import datetime
import prj_common as mycommon
import secrets
import inspect
import sys, os
class JSONEncoder(json.JSONEncoder):
def default(self, o):
@ -36,7 +36,9 @@ def add_user_message(diction):
# Ici on doit mettre tous les champs possible (obligatoire ou non) de la BDD dans la liste
# field_list.
'''
field_list = ['type', 'sender_mail', 'sender_tel', 'recever_mail', 'recever_tel', 'object', 'message', 'token']
field_list = ['type', 'sender_mail', 'sender_tel', 'recever_mail', 'recever_tel', 'object', 'message',
'token', 'user_ip', 'user_country_code', 'user_country_name', 'user_city','user_postal',
'user_latitude', 'user_longitude', 'user_state']
incom_keys = diction.keys()
for val in incom_keys:
if val not in field_list:
@ -107,6 +109,39 @@ def add_user_message(diction):
if diction['message']:
new_diction['message'] = diction['message']
if ("user_ip" in diction.keys()):
if diction['user_ip']:
new_diction['user_ip'] = diction['user_ip']
if ("user_country_code" in diction.keys()):
if diction['user_country_code']:
new_diction['user_country_code'] = diction['user_country_code']
if ("user_country_name" in diction.keys()):
if diction['user_country_name']:
new_diction['user_country_name'] = diction['user_country_name']
if ("user_city" in diction.keys()):
if diction['user_city']:
new_diction['user_city'] = diction['user_city']
if ("user_postal" in diction.keys()):
if diction['user_postal']:
new_diction['user_postal'] = diction['user_postal']
if ("user_latitude" in diction.keys()):
if diction['user_latitude']:
new_diction['user_latitude'] = diction['user_latitude']
if ("user_longitude" in diction.keys()):
if diction['user_longitude']:
new_diction['user_longitude'] = diction['user_longitude']
if ("user_state" in diction.keys()):
if diction['user_state']:
new_diction['user_state'] = diction['user_state']
new_diction['user_recid'] = user_recid
new_diction['sent'] = '0'
new_diction['valide'] = '1'
@ -116,7 +151,7 @@ def add_user_message(diction):
if ret_val and ret_val.inserted_id:
nb_doc = ret_val.inserted_id
mycommon.myprint("Le message a été bien enregistrée. Id message = '" + str(nb_doc) + "' ")
mycommon.myprint(" Le message a été bien enregistrée. Id message = '" + str(nb_doc) + "' ")
return True, "Le message a été bien enregistrée"
else:
return False, "Impossible d'ajouter le message"

View File

@ -153,7 +153,7 @@ def get_all_class(diction):
if diction['user_country_code']:
mydata['user_country_code'] = diction['user_country_code']
if ("user_ip" in diction.keys()):
if ("user_country_name" in diction.keys()):
if diction['user_country_name']:
mydata['user_country_name'] = diction['user_country_name']