From d210b9e01b84bc23e7427646c754be209c34c9a4 Mon Sep 17 00:00:00 2001 From: Roman Kysil Date: Tue, 26 Nov 2024 15:04:19 +0100 Subject: [PATCH] Divide PrenotazioniFolder.week_table time choice by 5 minutes instead of 15. (#220) --- CHANGES.rst | 3 ++- .../vocabularies/voc_ore_inizio.py | 19 ++----------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 8e0b2299..10ea7ca9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,8 @@ Changelog 2.7.11 (unreleased) ------------------- -- Nothing changed yet. +- Divide PrenotazioniFolder.week_table time choice by 5 minutes instead of 15. + [folix-01] 2.7.10 (2024-11-22) diff --git a/src/redturtle/prenotazioni/vocabularies/voc_ore_inizio.py b/src/redturtle/prenotazioni/vocabularies/voc_ore_inizio.py index e379b6ad..bc485557 100644 --- a/src/redturtle/prenotazioni/vocabularies/voc_ore_inizio.py +++ b/src/redturtle/prenotazioni/vocabularies/voc_ore_inizio.py @@ -17,23 +17,8 @@ def __init__(self, token, value): class VocOreInizio(object): """ """ - HOURS = [ - "07", - "08", - "09", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - ] - MINUTES = ["00", "15", "30", "45"] + HOURS = [f"{i:02}" for i in range(7, 21)] + MINUTES = [f"{i:02}" for i in range(0, 60, 5)] def __call__(self, context): items = []