Skip to content

Commit

Permalink
fix(review-bot): review bot for new structure done
Browse files Browse the repository at this point in the history
  • Loading branch information
RoRoJ committed Jan 30, 2025
1 parent 1b023bf commit 9644b1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/check-review-dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
import logging
from slack_sdk import WebClient
from datetime import timedelta, date, datetime
import json

DEFAULT_VAL_FREQ = 6
FILEPATH = "."
FILEPATH = "./" ## for local testing use "../"

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

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

for grouping in data:
Expand Down

0 comments on commit 9644b1a

Please sign in to comment.