File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,16 @@ def get_doc_cat_name(filepath, prod_cat_ref):
8787 trimmed_filepath = filepath [2 :- 4 ]
8888 filepath_list = trimmed_filepath .split ("/" )
8989
90- if filepath_list [1 ] == "tutorials" :
90+ if filepath_list [0 ] == "tutorials" :
9191 category_product = "Tutorials"
92- elif filepath_list [1 ] == "faq" :
92+ elif filepath_list [0 ] == "faq" :
9393 category_product = "FAQ"
9494 else :
9595 # catches everything in pages
9696 print ("Currently checking FILEPATH" , filepath )
9797 print ("filepath_list is" , filepath_list )
98- category = prod_cat_ref .get (filepath_list [2 ], ["Unknown" , "Unknown" ])[0 ]
99- product = prod_cat_ref .get (filepath_list [2 ], ["Unknown" , "Unknown" ])[1 ]
98+ category = prod_cat_ref .get (filepath_list [1 ], ["Unknown" , "Unknown" ])[0 ]
99+ product = prod_cat_ref .get (filepath_list [1 ], ["Unknown" , "Unknown" ])[1 ]
100100 category_product = category + ": " + product
101101
102102 return category_product , trimmed_filepath
You can’t perform that action at this time.
0 commit comments