DmitrMakeev commited on
Commit
64ac61b
·
verified ·
1 Parent(s): 6978876

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -123,30 +123,28 @@ def save_db():
123
 
124
 
125
  @app.route('/save_pl', methods=['GET'])
126
- def save_db():
127
  show_params = False
128
- list_id = request.args.get('list_id')
129
- name = request.args.get('name')
130
- name_id = request.args.get('name_id')
131
  email = request.args.get('email')
132
  phone = request.args.get('phone')
133
- phone_id = request.args.get('phone_id')
134
 
135
  data = {
136
  "email": email,
137
  "unconfirmed": False,
138
  "values": [
139
  {
140
- "parameter_id": phone_id,
141
  "kind": "string",
142
- "list_id": list_id,
143
  "title": "phone",
144
  "value": phone
145
  },
146
  {
147
- "parameter_id": name_id,
148
  "kind": "string",
149
- "list_id": list_id,
150
  "title": "name",
151
  "value": name
152
  }
 
123
 
124
 
125
  @app.route('/save_pl', methods=['GET'])
126
+ def save_pl():
127
  show_params = False
128
+ list_id1 = '560768'
129
+ name = request.args.get('name')
 
130
  email = request.args.get('email')
131
  phone = request.args.get('phone')
 
132
 
133
  data = {
134
  "email": email,
135
  "unconfirmed": False,
136
  "values": [
137
  {
138
+ "parameter_id": 393120,
139
  "kind": "string",
140
+ "list_id": list_id1,
141
  "title": "phone",
142
  "value": phone
143
  },
144
  {
145
+ "parameter_id": 393119,
146
  "kind": "string",
147
+ "list_id": list_id1,
148
  "title": "name",
149
  "value": name
150
  }