diff --git a/api/libretime_api/schedule/models/schedule.py b/api/libretime_api/schedule/models/schedule.py index 62d41b36c..4efc53c2d 100644 --- a/api/libretime_api/schedule/models/schedule.py +++ b/api/libretime_api/schedule/models/schedule.py @@ -52,7 +52,7 @@ class Schedule(models.Model): ) @property - def overbooked(self): + def overbooked(self) -> bool: """ A schedule item is overbooked if it starts after the end of the show instance it is in. diff --git a/api/schema.yml b/api/schema.yml index 63bbcf85d..72e265ed8 100644 --- a/api/schema.yml +++ b/api/schema.yml @@ -6512,7 +6512,7 @@ components: type: boolean nullable: true overbooked: - type: string + type: boolean readOnly: true PatchedServiceRegister: type: object @@ -7403,7 +7403,7 @@ components: type: boolean nullable: true overbooked: - type: string + type: boolean readOnly: true required: - broadcasted