From 7e92745f6cc86acb5c0e88b90fec24591d693ca2 Mon Sep 17 00:00:00 2001 From: Adrien <adrien.ricou@metapolis.fr> Date: Wed, 5 Jun 2024 14:13:57 +0200 Subject: [PATCH] Fix -> piloting indicators: Fixed internal error due to id duplication --- app/crud/piloting/indicator_crud.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/crud/piloting/indicator_crud.py b/app/crud/piloting/indicator_crud.py index f14e0ecb..a10fd95a 100644 --- a/app/crud/piloting/indicator_crud.py +++ b/app/crud/piloting/indicator_crud.py @@ -1,3 +1,4 @@ +import uuid from typing import List from uuid import UUID @@ -197,6 +198,7 @@ def add_new_indicator( :type indicator: NewIndicator """ new_indicator = PilotingIndicators( + id=uuid.uuid4(), id_axe=indicator.id_axe, title=indicator.title, target=indicator.target, -- GitLab