Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -849,7 +849,8 @@ def update_or_insert_user(db_name, user_data, mapping_template): | |
| 849 | 
             
                    "vk_id", "chat_id", "ws_st", "ws_stop", "web_st", "fin_prog",
         | 
| 850 | 
             
                    "b_city", "b_fin", "b_ban", "b_ign", "b_baners", "b_butt", "b_mess",
         | 
| 851 | 
             
                    "shop_st", "curator", "pr1", "pr2", "pr3", "pr4", "pr5", "ad_url",
         | 
| 852 | 
            -
                    "key_pr", "n_con", "canal", "data_t", 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content'
         | 
|  | |
| 853 | 
             
                ]
         | 
| 854 | 
             
                for field in required_fields:
         | 
| 855 | 
             
                    if field not in transformed_data:
         | 
| @@ -901,6 +902,7 @@ def update_or_insert_user(db_name, user_data, mapping_template): | |
| 901 | 
             
                conn.close()
         | 
| 902 | 
             
                logging.debug(f"User with email {email} processed successfully")
         | 
| 903 |  | 
|  | |
| 904 | 
             
            @app.route('/send_request', methods=['POST'])
         | 
| 905 | 
             
            def send_request():
         | 
| 906 | 
             
                token = request.form.get('token')
         | 
|  | |
| 849 | 
             
                    "vk_id", "chat_id", "ws_st", "ws_stop", "web_st", "fin_prog",
         | 
| 850 | 
             
                    "b_city", "b_fin", "b_ban", "b_ign", "b_baners", "b_butt", "b_mess",
         | 
| 851 | 
             
                    "shop_st", "curator", "pr1", "pr2", "pr3", "pr4", "pr5", "ad_url",
         | 
| 852 | 
            +
                    "key_pr", "n_con", "canal", "data_t", 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',
         | 
| 853 | 
            +
                    "phone_verified"  # Добавлено поле phone_verified
         | 
| 854 | 
             
                ]
         | 
| 855 | 
             
                for field in required_fields:
         | 
| 856 | 
             
                    if field not in transformed_data:
         | 
|  | |
| 902 | 
             
                conn.close()
         | 
| 903 | 
             
                logging.debug(f"User with email {email} processed successfully")
         | 
| 904 |  | 
| 905 | 
            +
             | 
| 906 | 
             
            @app.route('/send_request', methods=['POST'])
         | 
| 907 | 
             
            def send_request():
         | 
| 908 | 
             
                token = request.form.get('token')
         |