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