From 33e5e8ada380b4fb221432d5bcabea993c1c2387 Mon Sep 17 00:00:00 2001 From: jo Date: Tue, 19 Jul 2022 18:34:56 +0200 Subject: [PATCH] chore(api): fix overbooked property type hint --- api/libretime_api/schedule/models/schedule.py | 2 +- api/schema.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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