Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
@@ -88,7 +88,7 @@ if menu == "Home":
|
|
88 |
|
89 |
|
90 |
grouped = {}
|
91 |
-
|
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 |
-
|
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()
|