From 15c7a56d564721723cfae2b6e2f64cc7cbd8582d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Mon, 29 Mar 2021 22:34:05 +0200 Subject: [PATCH] [pricelist] receipt as list of strings --- flaschengeist/plugins/pricelist/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/plugins/pricelist/models.py b/flaschengeist/plugins/pricelist/models.py index d392168..99ef37c 100644 --- a/flaschengeist/plugins/pricelist/models.py +++ b/flaschengeist/plugins/pricelist/models.py @@ -139,7 +139,7 @@ class Drink(db.Model, ModelSerializeMixin): cost_per_package: Optional[float] = db.Column(db.Numeric(precision=5, scale=3, asdecimal=False)) uuid: str = db.Column(db.String(36)) - receipt: Optional[str] = db.Column(db.String) + receipt: Optional[list[str]] = db.Column(db.PickleType(protocol=4)) _type_id = db.Column("type_id", db.Integer, db.ForeignKey("drink_type.id"))