DmitrMakeev
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -865,6 +865,20 @@ def update_or_insert_user(db_name, user_data, mapping_template):
|
|
865 |
|
866 |
transformed_data['web_st'] = web_st_value
|
867 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
868 |
if user:
|
869 |
update_query = "UPDATE contacts SET "
|
870 |
update_values = []
|
|
|
865 |
|
866 |
transformed_data['web_st'] = web_st_value
|
867 |
|
868 |
+
# Верификация номера телефона
|
869 |
+
if 'phone' in user_data and verifikation_start == "1":
|
870 |
+
phone_verification_result = verify_phone_number(transformed_data['phone'])
|
871 |
+
if phone_verification_result == "true":
|
872 |
+
transformed_data['phone_verified'] = "True"
|
873 |
+
else:
|
874 |
+
transformed_data['phone_verified'] = "False"
|
875 |
+
|
876 |
+
# Назначение куратора
|
877 |
+
if curator_on_off == "1":
|
878 |
+
global current_curator_index
|
879 |
+
transformed_data['curator'] = curators[current_curator_index]
|
880 |
+
current_curator_index = (current_curator_index + 1) % len(curators)
|
881 |
+
|
882 |
if user:
|
883 |
update_query = "UPDATE contacts SET "
|
884 |
update_values = []
|