DmitrMakeev commited on
Commit
428b4e6
1 Parent(s): 55a13a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -799,11 +799,7 @@ def update_or_insert_user(db_name, user_data, mapping_template):
799
  transformed_data[field] = ""
800
 
801
  if user:
802
- web_st_value = user[0]
803
- if web_st_value is None or web_st_value == "":
804
- web_st_value = 0
805
- else:
806
- web_st_value = int(web_st_value) + 1
807
 
808
  update_query = "UPDATE contacts SET "
809
  update_values = []
@@ -880,7 +876,6 @@ def send_get_request():
880
 
881
 
882
 
883
-
884
 
885
 
886
  @app.route('/biz_v', methods=['GET'])
 
799
  transformed_data[field] = ""
800
 
801
  if user:
802
+ web_st_value = int(user[0]) + 1
 
 
 
 
803
 
804
  update_query = "UPDATE contacts SET "
805
  update_values = []
 
876
 
877
 
878
 
 
879
 
880
 
881
  @app.route('/biz_v', methods=['GET'])