From 354c4cbc2b1dd0c8e35a810cca52aac9a6ce28cf Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 31 Oct 2023 14:46:27 +0100 Subject: [PATCH] Fix booking duration type --- .../prenotazioni/browser/prenotazioni_context_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redturtle/prenotazioni/browser/prenotazioni_context_state.py b/src/redturtle/prenotazioni/browser/prenotazioni_context_state.py index 55b0a63d..6bf0eb0c 100644 --- a/src/redturtle/prenotazioni/browser/prenotazioni_context_state.py +++ b/src/redturtle/prenotazioni/browser/prenotazioni_context_state.py @@ -857,7 +857,7 @@ def get_booking_type_duration(self, booking_type): return int(booking_type.duration) * 60 if type(booking_type) is str: - return self.booking_type_durations.get(booking_type, 1) + return int(self.booking_type_durations.get(booking_type, 1)) # XXX: se il booking_type non esiste, ritorna 1 minuto, รจ corretto ???? return 1