DmitrMakeev commited on
Commit
e50eec2
·
verified ·
1 Parent(s): 5de5c4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -62
app.py CHANGED
@@ -175,69 +175,7 @@ def handle_incoming_request():
175
  }
176
  response = requests.post(f"{base_url}/email/lists/560768/recipients", json=data, headers=headers)
177
 
178
- # Лист 2
179
- show_params = False
180
- list_id = 560832
181
- name = request.args.get('name')
182
- email = request.args.get('email')
183
- phone = request.args.get('phone')
184
- data = {
185
- "email": email,
186
- "unconfirmed": False,
187
- "values": [
188
- {
189
- "parameter_id": 393120,
190
- "kind": "string",
191
- "list_id": 560832,
192
- "title": "phone",
193
- "value": phone
194
- },
195
- {
196
- "parameter_id": 393119,
197
- "kind": "string",
198
- "list_id": 560832,
199
- "title": "name",
200
- "value": name
201
- }
202
- ]
203
- }
204
- headers = {
205
- 'Authorization': f'Bearer {token}',
206
- 'Content-Type': 'application/json'
207
- }
208
- response = requests.post(f"{base_url}/email/lists/560832/recipients", json=data, headers=headers)
209
 
210
- # Лист 3
211
- show_params = False
212
- list_id = 560833
213
- name = request.args.get('name')
214
- email = request.args.get('email')
215
- phone = request.args.get('phone')
216
- data = {
217
- "email": email,
218
- "unconfirmed": False,
219
- "values": [
220
- {
221
- "parameter_id": 393196,
222
- "kind": "string",
223
- "list_id": 560832,
224
- "title": "phone",
225
- "value": phone
226
- },
227
- {
228
- "parameter_id": 393195,
229
- "kind": "string",
230
- "list_id": 560832,
231
- "title": "name",
232
- "value": name
233
- }
234
- ]
235
- }
236
- headers = {
237
- 'Authorization': f'Bearer {token}',
238
- 'Content-Type': 'application/json'
239
- }
240
- response = requests.post(f"{base_url}/email/lists/560833/recipients", json=data, headers=headers)
241
 
242
  elif current_day == 1: # Вторник
243
  if current_hour < 19:
 
175
  }
176
  response = requests.post(f"{base_url}/email/lists/560768/recipients", json=data, headers=headers)
177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
  elif current_day == 1: # Вторник
181
  if current_hour < 19: