From 2cc69db88efbfb814ffceb1609c3e93e1b5c9544 Mon Sep 17 00:00:00 2001 From: acgnhiki Date: Wed, 19 Jun 2024 22:40:39 +0800 Subject: [PATCH] fix: failed to add tasks due to long room id fix #267 fix #271 --- src/blrec/setting/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blrec/setting/models.py b/src/blrec/setting/models.py index daa0232..75231a3 100644 --- a/src/blrec/setting/models.py +++ b/src/blrec/setting/models.py @@ -315,7 +315,7 @@ class TaskOptions(BaseModel): class TaskSettings(TaskOptions): # must use the real room id rather than the short room id! - room_id: Annotated[int, Field(ge=1, le=99999999)] + room_id: Annotated[int, Field(ge=1, lt=2**32)] enable_monitor: bool = True enable_recorder: bool = True