We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b023bf commit 9644b1aCopy full SHA for 9644b1a
bin/check-review-dates.py
@@ -2,9 +2,10 @@
2
import logging
3
from slack_sdk import WebClient
4
from datetime import timedelta, date, datetime
5
+import json
6
7
DEFAULT_VAL_FREQ = 6
-FILEPATH = "."
8
+FILEPATH = "./" ## for local testing use "../"
9
10
def convert_to_date_and_delta(val_date, val_freq):
11
"Converts validation date string to datetime and validation frequency string (months) to timedelta."
@@ -22,7 +23,7 @@ def get_prod_cat_ref():
22
23
product_categories = {}
24
25
# Load the menu file
- with open('menu/navigation.json', 'r') as file:
26
+ with open(FILEPATH + 'menu/navigation.json', 'r') as file:
27
data = json.load(file) # Parse the JSON content into a Python dictionary or list
28
29
for grouping in data:
0 commit comments