From 10411466d83ac8811530e1b3dca1cd200c666bbd Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Tue, 16 Nov 2021 23:59:40 +0100 Subject: [PATCH] WebHost: make meta attribute LongStr instead of str --- WebHostLib/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebHostLib/models.py b/WebHostLib/models.py index e03d7666..2c85e5a7 100644 --- a/WebHostLib/models.py +++ b/WebHostLib/models.py @@ -40,7 +40,7 @@ class Seed(db.Entity): creation_time = Required(datetime, default=lambda: datetime.utcnow()) slots = Set(Slot) spoiler = Optional(LongStr, lazy=True) - meta = Required(str, default=lambda: "{\"race\": false}") # additional meta information/tags + meta = Required(LongStr, default=lambda: "{\"race\": false}") # additional meta information/tags class Command(db.Entity): @@ -53,5 +53,5 @@ class Generation(db.Entity): id = PrimaryKey(UUID, default=uuid4) owner = Required(UUID) options = Required(buffer, lazy=True) - meta = Required(str, default=lambda: "{\"race\": false}") + meta = Required(LongStr, default=lambda: "{\"race\": false}") state = Required(int, default=0, index=True)