DmitrMakeev commited on
Commit
aaeb521
·
verified ·
1 Parent(s): 2306ffd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1178,6 +1178,14 @@ def se_upl_csv():
1178
 
1179
  DATABASE2 = 'data_gc.db'
1180
 
 
 
 
 
 
 
 
 
1181
 
1182
 
1183
  def insert_data(data):
 
1178
 
1179
  DATABASE2 = 'data_gc.db'
1180
 
1181
+ def parse_csv_data(data):
1182
+ parsed_data = []
1183
+ for item in data:
1184
+ for key, value in item.items():
1185
+ headers = key.split(';')
1186
+ row = value.split(';')
1187
+ parsed_data.append(dict(zip(headers, row)))
1188
+ return parsed_data
1189
 
1190
 
1191
  def insert_data(data):