DmitrMakeev commited on
Commit
fbbb515
·
verified ·
1 Parent(s): 62b6bcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -1573,6 +1573,23 @@ def verify_phone_number(phone_number):
1573
  else:
1574
  return "Error"
1575
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1576
  def insert_data(data, verify_phone, add_curator):
1577
  global current_curator_index
1578
  conn = sqlite3.connect(DATABASE2)
 
1573
  else:
1574
  return "Error"
1575
 
1576
+
1577
+
1578
+
1579
+ def parse_csv_data(data):
1580
+ parsed_data = []
1581
+ for item in data:
1582
+ for key, value in item.items():
1583
+ headers = key.split(';')
1584
+ row = value.split(';')
1585
+ parsed_data.append(dict(zip(headers, row)))
1586
+ return parsed_data
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
  def insert_data(data, verify_phone, add_curator):
1594
  global current_curator_index
1595
  conn = sqlite3.connect(DATABASE2)