DmitrMakeev commited on
Commit
58b1dae
·
verified ·
1 Parent(s): 1747067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -10
app.py CHANGED
@@ -195,7 +195,7 @@ def clean_phone_number_ss(phone_number):
195
 
196
  # Добавляем пользователя
197
 
198
- mt_avp = {
199
  'name': 'name',
200
  'phone': 'phone',
201
  'email': 'email',
@@ -208,11 +208,11 @@ mt_avp = {
208
  'gcpc': 'gcpc'
209
  }
210
 
211
- mt_bhelp = {
212
  'name': 'name',
213
  'phone': 'phone',
214
  'email': 'email',
215
- 'vk_id': 'vk_id',
216
  'utm_campaign': 'utm_campaign',
217
  'utm_content': 'utm_content',
218
  'utm_medium': 'utm_medium',
@@ -225,7 +225,7 @@ mt_gc = {
225
  'name': 'name',
226
  'phone': 'phone',
227
  'email': 'email',
228
- 'vk_id': 'vk_id',
229
  'utm_campaign': 'utm_campaign',
230
  'utm_content': 'utm_content',
231
  'utm_medium': 'utm_medium',
@@ -234,7 +234,7 @@ mt_gc = {
234
  'gcpc': 'gcpc'
235
  }
236
 
237
- mt_tl = {
238
  'name': 'name',
239
  'phone': 'phone',
240
  'email': 'email',
@@ -263,10 +263,10 @@ tl_quest = {
263
  }
264
 
265
  mapp_templates = {
266
- 'avp': mt_avp,
267
- 'bhelp': mt_bhelp,
268
  'gc': mt_gc,
269
- 'tilda': mt_tl,
270
  'quest': tl_quest
271
  }
272
 
@@ -328,8 +328,8 @@ def add_or_update_contact(contact_data, db_name):
328
 
329
 
330
 
331
- @app.route('/ver_cur', methods=['GET'])
332
- def add_data_ver_cur():
333
  global current_curator_index
334
 
335
  veref_on_off = request.args.get('ver', '0')
@@ -382,6 +382,17 @@ def add_data_ver_cur():
382
 
383
 
384
 
 
 
 
 
 
 
 
 
 
 
 
385
  # Работа с ордером из сайта без VK_ID
386
  @app.route('/wr_order', methods=['GET'])
387
  def shop_order_new():
 
195
 
196
  # Добавляем пользователя
197
 
198
+ mt_vk = {
199
  'name': 'name',
200
  'phone': 'phone',
201
  'email': 'email',
 
208
  'gcpc': 'gcpc'
209
  }
210
 
211
+ mt_tg = {
212
  'name': 'name',
213
  'phone': 'phone',
214
  'email': 'email',
215
+ 'chat_id': 'chat_id',
216
  'utm_campaign': 'utm_campaign',
217
  'utm_content': 'utm_content',
218
  'utm_medium': 'utm_medium',
 
225
  'name': 'name',
226
  'phone': 'phone',
227
  'email': 'email',
228
+ 'gc_url': 'gc_url',
229
  'utm_campaign': 'utm_campaign',
230
  'utm_content': 'utm_content',
231
  'utm_medium': 'utm_medium',
 
234
  'gcpc': 'gcpc'
235
  }
236
 
237
+ mt_pass = {
238
  'name': 'name',
239
  'phone': 'phone',
240
  'email': 'email',
 
263
  }
264
 
265
  mapp_templates = {
266
+ 'vk': mt_vk,
267
+ 'tg': mt_tg,
268
  'gc': mt_gc,
269
+ 'tilda': mt_pass,
270
  'quest': tl_quest
271
  }
272
 
 
328
 
329
 
330
 
331
+ @app.route('/wr_user_ver_cur', methods=['GET'])
332
+ def add_user_ver_cur():
333
  global current_curator_index
334
 
335
  veref_on_off = request.args.get('ver', '0')
 
382
 
383
 
384
 
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
  # Работа с ордером из сайта без VK_ID
397
  @app.route('/wr_order', methods=['GET'])
398
  def shop_order_new():