KrSharangrav commited on
Commit
4837d8e
·
1 Parent(s): ad9bf8d

removing the delete before inserting feature

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -25,7 +25,6 @@ except Exception as e:
25
  st.stop()
26
 
27
  #### **3. Upload Data to MongoDB**
28
- collection.delete_many({}) # Optional: Clear existing data before inserting
29
  collection.insert_many(df.to_dict("records"))
30
  st.success("Data Uploaded to MongoDB!")
31
 
 
25
  st.stop()
26
 
27
  #### **3. Upload Data to MongoDB**
 
28
  collection.insert_many(df.to_dict("records"))
29
  st.success("Data Uploaded to MongoDB!")
30