Commit 1f8c86a1 authored by Johannes Bill's avatar Johannes Bill

holiday model refactored

parent e08302a9
var dateArray = require('dateArray');
var dateView = require('dateView');
var dateArray = require('./lib/dateArray');
var dateView = require('./lib/dateView');
function getOHIndex(incl, excl, date, plz, cb) {
var epochSpan = [new Date(date.getFullYear(), date.getMonth(), date.getDay() - 7),
new Date(date.getFullYear(), date.getMonth(), date.getDay() + 2)];
var epochSpan = [new Date(date.getFullYear(), date.getMonth(), date.getDate() - 7),
new Date(date.getFullYear(), date.getMonth(), date.getDate() + 2)];
dateArray(epochSpan).getData([incl, excl], plz, function(err, result) {
if(err) return cb(err);
var fResult = result.filter(function(elem) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment