Skip to content

Instantly share code, notes, and snippets.

@wadouk
Created November 12, 2012 15:40
Show Gist options
  • Save wadouk/4060047 to your computer and use it in GitHub Desktop.
Save wadouk/4060047 to your computer and use it in GitHub Desktop.
onecalendar icalstreams default
function save(o) {
if (!db.icalstreams.count({defaultTag:o.defaultTag}) ) {
db.icalstreams.save(o);
} else {
print(o.defaultTag,"already exist");
}
}
if (db.getName() === "OneCalendar") {
save({ "url" : "http://lacantine.org/events/feed.ics", "defaultTag" : "lacantine" });
save({ "url" : "http://www.parinux.org/calendar/ical", "defaultTag" : "parisnux" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment