From 4ec91bc1d861bcb229eba78cd5068cc189462447 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Fri, 6 Jun 2025 00:04:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Updated=20paths=20for=20JSON=20f?= =?UTF-8?q?iles=20in=20stub.py=20to=20correct=20relative=20references.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/stub.py b/app/stub.py index 0cb6ab0..1ff2f4d 100644 --- a/app/stub.py +++ b/app/stub.py @@ -13,7 +13,7 @@ client = pymongo.MongoClient(MONGODB_URL, username=MONGODB_USERNAME, password=MO db = client[MONGODB_DATABASE] # Créer le dossier pour stocker les images s'il n'existe pas -IMAGES_DIR = "../images" +IMAGES_DIR = "images" if not os.path.exists(IMAGES_DIR): os.makedirs(IMAGES_DIR) @@ -126,10 +126,10 @@ def import_real_data(user_id): images_collection = db["images"] # Charger les données JSON - with open('../memorymap.pins.json', 'r', encoding='utf-8') as f: + with open('memorymap.pins.json', 'r', encoding='utf-8') as f: pins_data = json.load(f) - with open('../memorymap.images.json', 'r', encoding='utf-8') as f: + with open('memorymap.images.json', 'r', encoding='utf-8') as f: images_data = json.load(f) # Créer un mapping des anciens IDs vers les nouveaux