Skip to content

Commit fe7a9f3

Browse files
Remove TODO marker for time condition checks
And bump minor release, resetting beta patchlevel
1 parent 3be4352 commit fe7a9f3

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/i18n/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
CLI_APP = "when"
1616
UI_APP_LABEL = "When Automation Tool"
1717
UI_APP_COPYRIGHT = "© 2023-2025 Francesco Garosi"
18-
UI_APP_VERSION = "1.12.1b7"
18+
UI_APP_VERSION = "1.12.2b1"
1919

2020
# other strings that should not be translated
2121
UI_WHENEVER = "Whenever"

lib/items/cond_time.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ def load_checking(
264264
self.hrtype = ITEM_COND_TIME
265265
tab = CheckedTable(item, item_line)
266266
assert tab.get_str("type") == self.type
267-
# TODO: check resulting dicts using get_array_of_dict_check_keys_vs_values
267+
268+
# these are expressed via a list of inline dictionaries whose
269+
# elements are fixed, and *must* exist, and have a specific form; we
270+
# use a dictionary based trick
268271
tests = {
269272
"weekday": lambda x: x in _WEEKDAYS_TOML,
270273
"year": lambda y: isinstance(y, int) and 0 < y <= 9999, # year boundaries

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "when"
3-
version = "1.12.1b7"
3+
version = "1.12.2b1"
44
description = "Interface for the **whenever** automation tool"
55
authors = ["Francesco Garosi <francesco.garosi@gmail.com>"]
66
license = 'BSD 3-Clause "New" or "Revised" License'

0 commit comments

Comments
 (0)