#205 fedocallib: RRULE INTERVAL must be an integer
Merged 4 months ago by pingou. Opened 6 months ago by lorbus.
lorbus/fedocal interval-int  into  master

fedocallib: RRULE INTERVAL must be an integer
Christian Glombek • 6 months ago  
@@ -705,7 +705,7 @@ 


      if meeting.recursion_frequency and meeting.recursion_ends:

          newrule = rrule.rruleset()

-         freq = meeting.recursion_frequency / 7

+         freq = int(meeting.recursion_frequency / 7)

          recursion_ends = datetime.combine(

              meeting.recursion_ends, time(0)).replace(tzinfo=pytz.utc)


Per RFC5545:

The INTERVAL rule part contains a positive integer representing at
which intervals the recurrence rule repeats.

Having INTERVAL be a decimal breaks import into some calendars,
like Google's.

Fixes: https://pagure.io/fedocal/issue/203

pretty please pagure-ci rebuild

5 months ago

Nice and easy, thanks!

Pull-Request has been merged by pingou

4 months ago