Update ns.py
Browse files
ns.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
def send_ns(
|
2 |
"""Функция для отправки запроса на сервер."""
|
3 |
data = {
|
4 |
"email": email,
|
@@ -6,16 +6,16 @@ def send_ns(id_list, email, phone, name, id_name, id_phone):
|
|
6 |
"values": [
|
7 |
|
8 |
{
|
9 |
-
"parameter_id":
|
10 |
"kind": "string",
|
11 |
-
"list_id":
|
12 |
"title": "phone",
|
13 |
"value": phone
|
14 |
},
|
15 |
{
|
16 |
-
"parameter_id":
|
17 |
"kind": "string",
|
18 |
-
"list_id":
|
19 |
"title": "name",
|
20 |
"value": name
|
21 |
}
|
|
|
1 |
+
def send_ns(list_id, email, phone, name, name_id, phone_id):
|
2 |
"""Функция для отправки запроса на сервер."""
|
3 |
data = {
|
4 |
"email": email,
|
|
|
6 |
"values": [
|
7 |
|
8 |
{
|
9 |
+
"parameter_id": phone_id,
|
10 |
"kind": "string",
|
11 |
+
"list_id": list_id,
|
12 |
"title": "phone",
|
13 |
"value": phone
|
14 |
},
|
15 |
{
|
16 |
+
"parameter_id": name_id,
|
17 |
"kind": "string",
|
18 |
+
"list_id": list_id,
|
19 |
"title": "name",
|
20 |
"value": name
|
21 |
}
|