Skip to content

Commit

Permalink
modification du scheduler avec la nouvelle DB
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Jan 26, 2024
1 parent ebd84fc commit 4c6fbae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 4c6fbae

Please sign in to comment.