if i have nothing in it it's ok
if i have one ical string it it works
if i have two icals strings separated with a ";" it works
add a 3rd and it gives a 500 error on saving.
tried using diffent combinations of the 3 strings to see if it was one particular but all work on their own or as a pair but not as a 3sum
dont know, need to recrete it and count it in word
why dons this work, i know im repeating but it still should work, it runs upto and including log.debug "filltered" then throws org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.values() is applicable for argument types: () values: []
Possible solutions: plus(java.lang.Object), plus(java.lang.Iterable), plus(java.lang.Object), plus(java.lang.Object), plus(java.util.Collection), plus(java.lang.Iterable) (getdata)
iCalMap.event = iCalMap.event.values()sort{ a, b -> a.start <=> b.start} //sort the data
log.debug "sorted"
iCalMap.event = iCalMap.event.unique()
log.debug "filltered"
iCalMap.event = iCalMap.event.values()sort{ a, b -> a.start <=> b.start} //sort the data
iCalMap.event = iCalMap.event.unique()
log.debug "fileter sorted again"
edit 3 icals
code to split
try {
icalinks = icalink.split(";")
icalinks.each { it ->
ive got it working it was the differance between these (2nd working) iCalMap.event = iCalMap.event.values()sort{ a, b -> a.start <=> b.start} //sort the data iCalMap.event = iCalMap.event.sort{ a, b -> a.start <=> b.start} //sort the data
I just cant seem to add a day to the start date
if (it.repeatFreq){
// log.debug "${it.summary} freq ${it.repeatFreq} ${it.repeatNum}"
if (it.repeatFreq.contains("DAILY") && it.repeatNum.toInteger() <= 0){ //RRULE:FREQ=DAILY;WKST=TU // SEQUENCE:1 //!it.repeatFreq.contains("INTERVAL") &&
log.debug "${fullstart} and ${it.repeatNum} and ${it.repeatFreq} and ${it.repeatNum} --- ${it}"
def num = it.repeatNum.toInteger()+1
//log.debug num
//fullstart = fullstart + num.day //add dd to time string