Skip to content

Commit 9644b1a

Browse files
committed
fix(review-bot): review bot for new structure done
1 parent 1b023bf commit 9644b1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/check-review-dates.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import logging
33
from slack_sdk import WebClient
44
from datetime import timedelta, date, datetime
5+
import json
56

67
DEFAULT_VAL_FREQ = 6
7-
FILEPATH = "."
8+
FILEPATH = "./" ## for local testing use "../"
89

910
def convert_to_date_and_delta(val_date, val_freq):
1011
"Converts validation date string to datetime and validation frequency string (months) to timedelta."
@@ -22,7 +23,7 @@ def get_prod_cat_ref():
2223
product_categories = {}
2324

2425
# Load the menu file
25-
with open('menu/navigation.json', 'r') as file:
26+
with open(FILEPATH + 'menu/navigation.json', 'r') as file:
2627
data = json.load(file) # Parse the JSON content into a Python dictionary or list
2728

2829
for grouping in data:

0 commit comments

Comments
 (0)