fix: Each improvement receives a uuid from a factory

This commit is contained in:
Marty Oehme 2025-06-09 16:12:04 +02:00
parent b80efc6d06
commit ac024989a6
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -1,4 +1,4 @@
from dataclasses import dataclass from dataclasses import dataclass, field
from uuid import uuid4 from uuid import uuid4
from prophet.domain.original import Original from prophet.domain.original import Original
@ -9,4 +9,4 @@ class Improvement: # GoodJoke: Queen
original: Original original: Original
title: str title: str
summary: str summary: str
id: str = str(uuid4()) id: str = field(default_factory=lambda: str(uuid4()))