Skip to content

Commit c2b41f5

Browse files
committed
fix(bot): test
1 parent aa7d1e0 commit c2b41f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/check-review-dates.py

+4-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)