Skip to content

Commit

Permalink
Divide PrenotazioniFolder.week_table time choice by 5 minutes instead…
Browse files Browse the repository at this point in the history
… of 15. (#220)
  • Loading branch information
folix-01 authored Nov 26, 2024
1 parent 8fab3f0 commit d210b9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
19 changes: 2 additions & 17 deletions src/redturtle/prenotazioni/vocabularies/voc_ore_inizio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit d210b9e

Please sign in to comment.