= commited on
Commit
7a9f5f6
·
1 Parent(s): e7c2578

separate sentences from deleted

Browse files
pages/provide_sentences_mongo.py CHANGED
@@ -96,7 +96,7 @@ def add_new_sentences():
96
  })
97
 
98
  # recuperate the already saved sentences (for the moment french/wolof)
99
- sentences = db_manager.load_data_frames()
100
 
101
  # add the last position to delete and modify
102
  st.session_state.line1 = len(sentences) - 1
@@ -125,7 +125,7 @@ def add_new_sentences2():
125
  })
126
 
127
  # recuperate the already saved sentences (for the moment french/wolof)
128
- sentences = db_manager.load_data_frames()
129
 
130
  # clean the inputs' contents
131
  st.session_state.left_sentence = ''
@@ -152,7 +152,7 @@ def delete_line():
152
  db_manager.delete_document(number)
153
 
154
  # recuperate the already saved sentences (for the moment french/wolof)
155
- sentences = db_manager.load_data_frames()
156
 
157
  def modify_line():
158
 
@@ -174,7 +174,7 @@ def modify_line():
174
  db_manager.update_document(number)
175
 
176
  # recuperate the already saved sentences (for the moment french/wolof)
177
- sentences = db_manager.load_data_frames()
178
 
179
  left.header("French")
180
  left.text_area(sentences.columns.tolist()[1], key = "left_sentence")
 
96
  })
97
 
98
  # recuperate the already saved sentences (for the moment french/wolof)
99
+ sentences, deleted = db_manager.load_data_frames()
100
 
101
  # add the last position to delete and modify
102
  st.session_state.line1 = len(sentences) - 1
 
125
  })
126
 
127
  # recuperate the already saved sentences (for the moment french/wolof)
128
+ sentences, deleted = db_manager.load_data_frames()
129
 
130
  # clean the inputs' contents
131
  st.session_state.left_sentence = ''
 
152
  db_manager.delete_document(number)
153
 
154
  # recuperate the already saved sentences (for the moment french/wolof)
155
+ sentences, deleted = db_manager.load_data_frames()
156
 
157
  def modify_line():
158
 
 
174
  db_manager.update_document(number)
175
 
176
  # recuperate the already saved sentences (for the moment french/wolof)
177
+ sentences, deleted = db_manager.load_data_frames()
178
 
179
  left.header("French")
180
  left.text_area(sentences.columns.tolist()[1], key = "left_sentence")
wolof_translate/utils/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (241 Bytes). View file
 
wolof_translate/utils/__pycache__/database_manager.cpython-310.pyc ADDED
Binary file (2.93 kB). View file