BufferLine.id should be a string

This commit is contained in:
jesopo 2020-01-17 16:37:22 +00:00
parent b4e3ee5d0e
commit 9efe952a9f

View file

@ -17,7 +17,8 @@ class BufferLine(object):
notes: typing.Dict[str, str] = dataclasses.field(
default_factory=dict)
id: str = dataclasses.field(default_factory=uuid.uuid4)
id: str = dataclasses.field(
default_factory=lambda: str(uuid.uuid4()))
timestamp: datetime.datetime = dataclasses.field(
default_factory=utils.datetime.utcnow)