Module: check_mk
Branch: master
Commit: a4cd2ba37fd9d8a2481e5356411f7f9092bc74fc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a4cd2ba37fd9d8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 10 13:52:25 2018 +0200
6776 FIX Timeperiod ical import: Fixed limitation to 100 events per multiple day event
When a single repeating event creates events for more than 100 days, only the first
100 events were used by the import. This limitation has now been removed.
Change-Id: I89db72ea0c5ecb492772fda662b2fdc7cf984bf0
---
.werks/6776 | 12 ++++++++++++
cmk/gui/wato/pages/timeperiods.py | 4 +---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/6776 b/.werks/6776
new file mode 100644
index 0000000..c34f526
--- /dev/null
+++ b/.werks/6776
@@ -0,0 +1,12 @@
+Title: Timeperiod ical import: Fixed limitation to 100 events per multiple day event
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1539101414
+
+When a single repeating event creates events for more than 100 days, only the first
+100 events were used by the import. This limitation has now been removed.
diff --git a/cmk/gui/wato/pages/timeperiods.py b/cmk/gui/wato/pages/timeperiods.py
index e9d92aa..d86f442 100644
--- a/cmk/gui/wato/pages/timeperiods.py
+++ b/cmk/gui/wato/pages/timeperiods.py
@@ -518,9 +518,7 @@ class ModeTimeperiodImportICal(WatoMode):
# Resolve multiple days
resolved, cur_timestamp, day = [], time.mktime(cur_start_time), 1
- # day < 100 is just some plausibilty check. In case such an event
- # is needed eventually remove this
- while cur_timestamp < time.mktime(event["end"]) and day <
100:
+ while cur_timestamp < time.mktime(event["end"]):
resolved.append({
"name" : "%s %s" % (event["name"],
_(" (day %d)") % day),
"date" : time.strftime("%Y-%m-%d",
time.localtime(cur_timestamp)),