Ronio Jerico Roque commited on
Commit
8e754cf
·
1 Parent(s): 4e1514e

Fix fetch_backlinks method to return the complete result and add debug print statement in process method

Browse files
Files changed (1) hide show
  1. classes/response_seo.py +2 -1
classes/response_seo.py CHANGED
@@ -60,7 +60,7 @@ class Seo:
60
  mydb = myclient.get_database()
61
  mycol = mydb["df_data"]
62
  x = mycol.find_one({"data_field": data_field})
63
- x = x["result"]['question']
64
  return x
65
 
66
  def fetch_data(self, data_field):
@@ -149,6 +149,7 @@ class Seo:
149
 
150
  def process (self):
151
  with st.spinner('Seo Analyst...', show_time=True):
 
152
  st.write('')
153
  headers = {"Content-Type": "application/json", "x-api-key": f"{os.getenv('x_api_key')}"}
154
  try:
 
60
  mydb = myclient.get_database()
61
  mycol = mydb["df_data"]
62
  x = mycol.find_one({"data_field": data_field})
63
+ x = x["result"]
64
  return x
65
 
66
  def fetch_data(self, data_field):
 
149
 
150
  def process (self):
151
  with st.spinner('Seo Analyst...', show_time=True):
152
+ print("doneeeeeeeeeee")
153
  st.write('')
154
  headers = {"Content-Type": "application/json", "x-api-key": f"{os.getenv('x_api_key')}"}
155
  try: