GHarshasri commited on
Commit
0a0f8c4
·
verified ·
1 Parent(s): 0625ae6

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -2
src/streamlit_app.py CHANGED
@@ -88,7 +88,7 @@ if menu == "Home":
88
 
89
 
90
  grouped = {}
91
- for district, category, product in data:
92
  grouped.setdefault(district, {}).setdefault(category, []).append(product)
93
 
94
  for district, categories in grouped.items():
@@ -116,7 +116,7 @@ elif menu == "Add Data":
116
  # Add Category
117
  with st.form("add_category_form"):
118
 
119
- cursor = conn.cursor()
120
  cursor.execute("SELECT name FROM districts")
121
  district_list = [row[0] for row in cursor.fetchall()]
122
  conn.close()
 
88
 
89
 
90
  grouped = {}
91
+
92
  grouped.setdefault(district, {}).setdefault(category, []).append(product)
93
 
94
  for district, categories in grouped.items():
 
116
  # Add Category
117
  with st.form("add_category_form"):
118
 
119
+
120
  cursor.execute("SELECT name FROM districts")
121
  district_list = [row[0] for row in cursor.fetchall()]
122
  conn.close()