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):
87
87
trimmed_filepath = filepath [2 :- 4 ]
88
88
filepath_list = trimmed_filepath .split ("/" )
89
89
90
- if filepath_list [1 ] == "tutorials" :
90
+ if filepath_list [0 ] == "tutorials" :
91
91
category_product = "Tutorials"
92
- elif filepath_list [1 ] == "faq" :
92
+ elif filepath_list [0 ] == "faq" :
93
93
category_product = "FAQ"
94
94
else :
95
95
# catches everything in pages
96
96
print ("Currently checking FILEPATH" , filepath )
97
97
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 ]
100
100
category_product = category + ": " + product
101
101
102
102
return category_product , trimmed_filepath
You can’t perform that action at this time.
0 commit comments