Module: check_mk
Branch: master
Commit: bcd57a4d7517f419b5acdcad7012177e72ffd0c3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bcd57a4d7517f4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 6 14:03:30 2014 +0100
Removed debug code ; sorting timeperiod exceptions now
---
web/htdocs/wato.py | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3689945..103a006 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9384,14 +9384,6 @@ def parse_ical(ical_blob, horizon=10, times=(None, None, None)):
raise Exception('The frequency "%s" is currently not
supported' % freq)
return t
- ical['raw_events'].append({
- 'name': 'test',
- 'start': [2010, 1, 6, 0, 0, 0, 2, 6, -1],
- 'recurrence': {
- 'FREQ': 'MONTHLY',
- }
- })
-
# Now resolve recurring events starting from 01.01 of current year
resolved = []
now = list(time.strptime(str(time.localtime().tm_year-1), "%Y"))
@@ -9410,7 +9402,7 @@ def parse_ical(ical_blob, horizon=10, times=(None, None, None)):
'date' : time.strftime('%Y-%m-%d', cur),
})
- ical['events'] = resolved
+ ical['events'] = sorted(resolved)
return ical
# Displays a dialog for uploading an ical file which will then