Skip to content

Commit

Permalink
fix(bot): test
Browse files Browse the repository at this point in the history
  • Loading branch information
RoRoJ committed Jan 30, 2025
1 parent aa7d1e0 commit c2b41f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/check-review-dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ def get_doc_cat_name(filepath, prod_cat_ref):
trimmed_filepath = filepath[2:-4]
filepath_list = trimmed_filepath.split("/")

if filepath_list[1] == "tutorials":
if filepath_list[0] == "tutorials":
category_product = "Tutorials"
elif filepath_list[1] == "faq":
elif filepath_list[0] == "faq":
category_product = "FAQ"
else:
# catches everything in pages
print("Currently checking FILEPATH", filepath)
print("filepath_list is", filepath_list)
category = prod_cat_ref.get(filepath_list[2], ["Unknown", "Unknown"])[0]
product = prod_cat_ref.get(filepath_list[2], ["Unknown", "Unknown"])[1]
category = prod_cat_ref.get(filepath_list[1], ["Unknown", "Unknown"])[0]
product = prod_cat_ref.get(filepath_list[1], ["Unknown", "Unknown"])[1]
category_product = category + ": " + product

return category_product, trimmed_filepath
Expand Down

0 comments on commit c2b41f5

Please sign in to comment.