Commit fd64692e authored by Johannes Bill's avatar Johannes Bill

renaming

parent 84607fc2
......@@ -31,13 +31,16 @@ function getOHIndex(info, today, cb) {
})
}
function getOhView(info, now, cb) {
function getFull(info, now, cb) {
var epocheSpan = dateView.getPropperEpochSpan(now);
dateArray(epocheSpan).getData(info, function (err, dataObj) {
if (err) return cb(null, err);
var short = dateView.asString(dataObj, now);
var res = {
threeMonth: dateView.threeMonth(dataObj, now),
short: dateView.asString(dataObj, now)
isOpen: short.isOpen,
text: short.text,
status: short.status
};
cb(null, res);
})
......@@ -54,7 +57,7 @@ function getShort(info, now, cb) {
module.exports = {
getOHIndex: getOHIndex,
getOhView: getOhView,
getFull: getFull,
getShort: getShort
};
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