From 13814dafaf7c0674d25565a8ae0ae08a0c5088b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Galdal?= Date: Tue, 23 Jul 2024 23:25:51 +0200 Subject: [PATCH] fix: specify certificate --- algorithm/requirements.txt | Bin 286 -> 320 bytes ...es.py => fetch_applicants_and_committees.py} | 11 +++++------ 2 files changed, 5 insertions(+), 6 deletions(-) rename algorithm/src/mip_matching/{fetch-applicants-and-committees.py => fetch_applicants_and_committees.py} (94%) diff --git a/algorithm/requirements.txt b/algorithm/requirements.txt index 45c7880b90a947297f03ef0a809f6721dbdd8069..6b8206b471469006a2a265f7bd5c72831bdfdf80 100644 GIT binary patch delta 42 rcmbQobbx7t9HUY)Ln=cNLkUABLmCj<0-+Iu0T7!o=rNcBu?YhJ#1IEV delta 7 OcmX@WG>>V693ub now: applicants = fetch_applicants(periodId) committee_times = fetch_committee_times(periodId) @@ -30,7 +30,7 @@ def connect_to_db(collection_name): mongo_uri = os.getenv("MONGODB_URI") db_name = os.getenv("DB_NAME") - client = MongoClient(mongo_uri) + client = MongoClient(mongo_uri, tlsCAFile=certifi.where()) db = client[db_name] # type: ignore @@ -71,6 +71,5 @@ def fetch_committee_times(periodId): return committee_times - - - +if __name__ == "__main__": + main() \ No newline at end of file