1.1 --- a/imiptools/handlers/scheduling/freebusy.py Sun Jun 04 18:28:18 2017 +0200
1.2 +++ b/imiptools/handlers/scheduling/freebusy.py Sun Jun 04 20:15:44 2017 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Free/busy-related scheduling functionality.
1.6
1.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -49,7 +49,7 @@
1.13 # If newer than any old version, discard old details from the
1.14 # free/busy record and check for suitability.
1.15
1.16 - periods = handler.get_periods(handler.obj)
1.17 + periods = handler.get_periods(handler.obj, future_only=True)
1.18
1.19 freebusy = freebusy or handler.get_store().get_freebusy(handler.user)
1.20 offers = handler.get_store().get_freebusy_offers(handler.user)
1.21 @@ -169,7 +169,7 @@
1.22
1.23 last = None
1.24
1.25 - for period in handler.get_periods(handler.obj, explicit_only=True):
1.26 + for period in handler.get_periods(handler.obj, explicit_only=True, future_only=True):
1.27 duration = period.get_duration()
1.28
1.29 # Try and schedule periods normally since some of them may be