Ronio Jerico Roque commited on
Commit
c31b3b1
·
1 Parent(s): 3f96c5d

Refactor process method in SeoOffPageAnalyst to simplify condition and comment out unused website audience handling

Browse files
Files changed (1) hide show
  1. classes/Off_Page.py +4 -4
classes/Off_Page.py CHANGED
@@ -50,7 +50,7 @@ class SeoOffPageAnalyst:
50
  def process(self):
51
  start_time = time.time()
52
  session = st.session_state['analyze']
53
- if (self.uploaded_files) and session == 'clicked':
54
  combined_text = ""
55
  website_audience = ""
56
  with st.spinner('Uploading Off Page...', show_time=True):
@@ -122,9 +122,9 @@ class SeoOffPageAnalyst:
122
  if self.uploaded_files:
123
  st.session_state['off_page_file_uploaded'] = 'uploaded'
124
  collect_telemetry(debug_info)
125
- if self.website_audience:
126
- st.session_state['website_audience'] = 'uploaded'
127
- collect_telemetry(debug_info_website_audience)
128
 
129
 
130
  #with st.expander("Debug information", icon="⚙"):
 
50
  def process(self):
51
  start_time = time.time()
52
  session = st.session_state['analyze']
53
+ if self.uploaded_files and session == 'clicked':
54
  combined_text = ""
55
  website_audience = ""
56
  with st.spinner('Uploading Off Page...', show_time=True):
 
122
  if self.uploaded_files:
123
  st.session_state['off_page_file_uploaded'] = 'uploaded'
124
  collect_telemetry(debug_info)
125
+ #if self.website_audience:
126
+ # st.session_state['website_audience'] = 'uploaded'
127
+ # collect_telemetry(debug_info_website_audience)
128
 
129
 
130
  #with st.expander("Debug information", icon="⚙"):