File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 55import json
66
77DEFAULT_VAL_FREQ = 6
8- FILEPATH = "./" ## for local testing use "../"
8+ FILEPATH = "./" ## for local testing use "../" and shift filepath_list[] indexes +1
99
1010def convert_to_date_and_delta (val_date , val_freq ):
1111 "Converts validation date string to datetime and validation frequency string (months) to timedelta."
@@ -93,8 +93,6 @@ def get_doc_cat_name(filepath, prod_cat_ref):
9393 category_product = "FAQ"
9494 else :
9595 # catches everything in pages
96- print ("Currently checking FILEPATH" , filepath )
97- print ("filepath_list is" , filepath_list )
9896 category = prod_cat_ref .get (filepath_list [1 ], ["Unknown" , "Unknown" ])[0 ]
9997 product = prod_cat_ref .get (filepath_list [1 ], ["Unknown" , "Unknown" ])[1 ]
10098 category_product = category + ": " + product
@@ -128,7 +126,7 @@ def prep_message(docs_to_review_by_cat):
128126 message = ":wave: Hi doc team, here are some docs to review: \n \n "
129127
130128 for key in docs_to_review_by_cat :
131- message += "*" + key . title () + "*" + "\n "
129+ message += "*" + key + "*" + "\n "
132130 for doc in docs_to_review_by_cat [key ]:
133131 message += doc + "\n "
134132 message += "\n "
You can’t perform that action at this time.
0 commit comments