From 423fef513cd3c3e8b489e076dbe0812e29d678b5 Mon Sep 17 00:00:00 2001 From: GianlucaOberreit <gianluca.oberreit@polytechnique.edu> Date: Sat, 5 Aug 2023 15:58:07 +0200 Subject: [PATCH] Add committees.json reading --- src/utils/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/config.py b/src/utils/config.py index 790d658..cf50d97 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -1,6 +1,10 @@ from pathlib import Path import redis +import json ROOT = str(Path(__file__).parent.parent.parent) r = redis.Redis(host='localhost', port=6379, decode_responses=True) + +with open(ROOT + "/data/Committees/committees.json") as f: + committees_info = json.load(f) -- GitLab