ya3

ya3 -- yet another appointment application
Log | Files | Refs

commit cf2cc3fdc40c4173eee00bfa981f3c9da7c1abda
parent 34efa09210f5329f19f5d00200dd4db527eba024
Author: Matthias Balk <matthias.balk@fotopuzzle.de>
Date:   Tue, 15 Jan 2019 16:48:37 +0100

Bugfix: MAX_AGE is relative to end of event, not start

Diffstat:
Mcommands.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands.py b/commands.py @@ -94,7 +94,7 @@ def print_events(icsfilenames): def _is_in_range(event): start = _conv2local(event.dtstart.value) end = _conv2local(event.dtend.value) - return (start >= datetime.now(gettz()) - config.MAX_AGE and + return (end >= datetime.now(gettz()) - config.MAX_AGE and start < datetime.now(gettz()) + config.MAX_AHEAD) def _print(event):