DmitrMakeev commited on
Commit
2a6bd09
·
verified ·
1 Parent(s): 0e795a4

Update ns.py

Browse files
Files changed (1) hide show
  1. ns.py +5 -5
ns.py CHANGED
@@ -1,4 +1,4 @@
1
- def send_ns(id_list, email, phone, name, id_name, id_phone):
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": id_phone,
10
  "kind": "string",
11
- "list_id": id_list,
12
  "title": "phone",
13
  "value": phone
14
  },
15
  {
16
- "parameter_id": id_name,
17
  "kind": "string",
18
- "list_id": id_list,
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
  }