georad commited on
Commit
f6de6bb
·
verified ·
1 Parent(s): cb0dfee

Update pages/type_text_v10.py

Browse files
Files changed (1) hide show
  1. pages/type_text_v10.py +2 -2
pages/type_text_v10.py CHANGED
@@ -51,11 +51,11 @@ chapter_rows_indexes_list = selected_chapters['range_of_rows'].tolist()
51
  #st.write("CHAPTER START ROW INDEX: ", chapter_start_row_index)
52
  #st.write("CHAPTER END ROW INDEX: ", chapter_end_row_index)
53
  #st.write("CHAPTER ROWS INDEXES LIST: ", chapter_rows_indexes_list)
54
- combined_chapters_rows_indexes_list = []
55
  for item in chapter_rows_indexes_list:
56
  combined_chapters_rows_indexes_list.extend(item)
57
 
58
- if len(combined_chapters_rows_indexes_list) == 0:
59
  st.warning("Please select at least one chapter")
60
  st.write("COMBINED CHAPTERS ROWS INDEXES LIST: ", combined_chapters_rows_indexes_list)
61
  df_SBS = pd.read_csv("SBS_V2_0/Code_Table.csv", header=0, skip_blank_lines=False, skiprows = lambda x: x not in combined_chapters_rows_indexes_list)
 
51
  #st.write("CHAPTER START ROW INDEX: ", chapter_start_row_index)
52
  #st.write("CHAPTER END ROW INDEX: ", chapter_end_row_index)
53
  #st.write("CHAPTER ROWS INDEXES LIST: ", chapter_rows_indexes_list)
54
+ combined_chapters_rows_indexes_list = [0]
55
  for item in chapter_rows_indexes_list:
56
  combined_chapters_rows_indexes_list.extend(item)
57
 
58
+ if len(combined_chapters_rows_indexes_list) == 1:
59
  st.warning("Please select at least one chapter")
60
  st.write("COMBINED CHAPTERS ROWS INDEXES LIST: ", combined_chapters_rows_indexes_list)
61
  df_SBS = pd.read_csv("SBS_V2_0/Code_Table.csv", header=0, skip_blank_lines=False, skiprows = lambda x: x not in combined_chapters_rows_indexes_list)