DmitrMakeev commited on
Commit
d48703d
·
verified ·
1 Parent(s): 0e06149

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -848,7 +848,7 @@ def update_or_insert_user(db_name, user_data, mapping_template):
848
  "vk_id", "chat_id", "ws_st", "ws_stop", "web_st", "fin_prog",
849
  "b_city", "b_fin", "b_ban", "b_ign", "b_baners", "b_butt", "b_mess",
850
  "shop_st", "curator", "pr1", "pr2", "pr3", "pr4", "pr5", "ad_url",
851
- "key_pr", "n_con", "canal", "data_t"
852
  ]
853
  for field in required_fields:
854
  if field not in transformed_data:
@@ -1171,15 +1171,6 @@ def se_mes_f_gc():
1171
 
1172
 
1173
 
1174
- @app.route('/upl_csv', methods=['GET'])
1175
- def se_upl_csv():
1176
- api_sys_control = request.args.get('api_sys')
1177
- if api_sys_control != api_key_sys:
1178
- return "EUR 22", 200
1179
- return render_template('upl_csv.html')
1180
-
1181
-
1182
-
1183
 
1184
 
1185
 
@@ -1816,6 +1807,15 @@ def upload_csv():
1816
 
1817
 
1818
 
 
 
 
 
 
 
 
 
 
1819
 
1820
 
1821
 
 
848
  "vk_id", "chat_id", "ws_st", "ws_stop", "web_st", "fin_prog",
849
  "b_city", "b_fin", "b_ban", "b_ign", "b_baners", "b_butt", "b_mess",
850
  "shop_st", "curator", "pr1", "pr2", "pr3", "pr4", "pr5", "ad_url",
851
+ "key_pr", "n_con", "canal", "data_t", 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content'
852
  ]
853
  for field in required_fields:
854
  if field not in transformed_data:
 
1171
 
1172
 
1173
 
 
 
 
 
 
 
 
 
 
1174
 
1175
 
1176
 
 
1807
 
1808
 
1809
 
1810
+ @app.route('/upl_csv', methods=['GET'])
1811
+ def se_upl_csv():
1812
+ api_sys_control = request.args.get('api_sys')
1813
+ if api_sys_control != api_key_sys:
1814
+ return "EUR 22", 200
1815
+ return render_template('upl_csv.html')
1816
+
1817
+
1818
+
1819
 
1820
 
1821