DmitrMakeev
commited on
Commit
•
9e68655
1
Parent(s):
7da6441
Update app.py
Browse files
app.py
CHANGED
@@ -1578,15 +1578,14 @@ def add_or_update_contact(contact_data):
|
|
1578 |
def add_data_ver_cur():
|
1579 |
global current_curator_index
|
1580 |
|
1581 |
-
veref_on_off = request.args.get('ver', '0')
|
1582 |
-
curator_on_off = request.args.get('cur', '0')
|
|
|
1583 |
template_key = request.args.get('template_key', 'avp')
|
1584 |
mapping_template_cur = mapp_templates.get(template_key, mt_avp)
|
1585 |
|
1586 |
user_data = {mapping_template_cur[key]: request.args.get(key, "") for key in mapping_template_cur}
|
1587 |
|
1588 |
-
logging.debug(f"Received data: {user_data}")
|
1589 |
-
|
1590 |
if curator_on_off == "1":
|
1591 |
user_data['curator'] = curators[current_curator_index]
|
1592 |
|
|
|
1578 |
def add_data_ver_cur():
|
1579 |
global current_curator_index
|
1580 |
|
1581 |
+
veref_on_off = request.args.get('ver', '0') # Включает "1" и выключает "0" верификацию номера вместо verifikation_start
|
1582 |
+
curator_on_off = request.args.get('cur', '0') # Включает "1" и выключает "0" назначение куратора
|
1583 |
+
|
1584 |
template_key = request.args.get('template_key', 'avp')
|
1585 |
mapping_template_cur = mapp_templates.get(template_key, mt_avp)
|
1586 |
|
1587 |
user_data = {mapping_template_cur[key]: request.args.get(key, "") for key in mapping_template_cur}
|
1588 |
|
|
|
|
|
1589 |
if curator_on_off == "1":
|
1590 |
user_data['curator'] = curators[current_curator_index]
|
1591 |
|