equal
deleted
inserted
replaced
11 number of days are less then 5 and |
11 number of days are less then 5 and |
12 enabling registration when workshop |
12 enabling registration when workshop |
13 is within 30 days. |
13 is within 30 days. |
14 """ |
14 """ |
15 eventList = [] |
15 eventList = [] |
16 eventPage = urllib.urlopen('http://fossee.in/event/ical', proxies=proxies).read() |
16 eventPage = urllib.urlopen('http://fossee.in/event/ical').read() |
17 parsedCal = vobject.readOne(eventPage) |
17 parsedCal = vobject.readOne(eventPage) |
18 for event in parsedCal.components(): |
18 for event in parsedCal.components(): |
19 eventDate = event.dtstart.value.date() |
19 eventDate = event.dtstart.value.date() |
20 daysLeft = eventDate - date.today() |
20 daysLeft = eventDate - date.today() |
21 if daysLeft.days > 3 and daysLeft.days < 31: |
21 if daysLeft.days > 3 and daysLeft.days < 31: |