From 4c6fbae2b23e4e014e65f6f14946be2dc63e2528 Mon Sep 17 00:00:00 2001 From: AlexTheGeek <28763288+AlexTheGeek@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:10:03 +0100 Subject: [PATCH] modification du scheduler avec la nouvelle DB --- scheduler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scheduler.py b/scheduler.py index 8554884..e6e3876 100644 --- a/scheduler.py +++ b/scheduler.py @@ -33,8 +33,7 @@ def synchronize_template_image(): for image in images_openstack: if image not in templates_db: # Insert the image in the database - cursor.execute("INSERT INTO template (id, name, users_id) VALUES (%s, %s, %s)", (str(uuid.uuid4()), str(image), "1")) - # cursor.execute("INSERT INTO template (id, name) VALUES (%s, %s)", (str(uuid.uuid4()), str(image))) + cursor.execute("INSERT INTO template (id, name) VALUES (%s, %s)", (str(uuid.uuid4()), str(image))) db.commit()