Skip to content
Snippets Groups Projects
Commit b4f34823 authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

publish: oups

generated from commit b051030b
parent 92f6df6f
Branches
Tags
No related merge requests found
...@@ -7680,7 +7680,7 @@ var ProfileTypeService = /*#__PURE__*/function () { ...@@ -7680,7 +7680,7 @@ var ProfileTypeService = /*#__PURE__*/function () {
(0, _defineProperty2.default)(this, "year", void 0); (0, _defineProperty2.default)(this, "year", void 0);
(0, _defineProperty2.default)(this, "fetchDJU", /*#__PURE__*/function () { (0, _defineProperty2.default)(this, "fetchDJU", /*#__PURE__*/function () {
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(month) { var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(month) {
var startDate, endDate, result, monthDju, _iterator, _step, measure, errorMessage; var startDate, endDate, result, monthDju, degreeDayObservations, _iterator, _step, observation, errorMessage;
   
return _regenerator.default.wrap(function _callee$(_context) { return _regenerator.default.wrap(function _callee$(_context) {
while (1) { while (1) {
...@@ -7710,15 +7710,15 @@ var ProfileTypeService = /*#__PURE__*/function () { ...@@ -7710,15 +7710,15 @@ var ProfileTypeService = /*#__PURE__*/function () {
monthDju = 0; monthDju = 0;
   
if (result) { if (result) {
_iterator = _createForOfIteratorHelper(result.values); degreeDayObservations = result.values.filter(function (value) {
return value.observation === 'degreeDay';
});
_iterator = _createForOfIteratorHelper(degreeDayObservations);
   
try { try {
for (_iterator.s(); !(_step = _iterator.n()).done;) { for (_iterator.s(); !(_step = _iterator.n()).done;) {
measure = _step.value; observation = _step.value;
monthDju += observation.measurement;
if (measure.observation === 'degreeDay') {
monthDju += measure.measurement;
}
} }
} catch (err) { } catch (err) {
_iterator.e(err); _iterator.e(err);
...@@ -7727,26 +7727,24 @@ var ProfileTypeService = /*#__PURE__*/function () { ...@@ -7727,26 +7727,24 @@ var ProfileTypeService = /*#__PURE__*/function () {
} }
} }
   
logStack('debug', "TEST DJU : ".concat(monthDju)); logStack('debug', 'Month dju : ' + monthDju);
logStack('info', "TEST DJU : ".concat(monthDju));
logStack('error', "TEST DJU : ".concat(monthDju));
   
if (!(monthDju === 0)) { if (!(monthDju === 0)) {
_context.next = 15; _context.next = 13;
break; break;
} }
   
return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]); return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]);
   
case 15: case 13:
return _context.abrupt("return", monthDju); return _context.abrupt("return", monthDju);
   
case 16: case 14:
_context.next = 25; _context.next = 23;
break; break;
   
case 18: case 16:
_context.prev = 18; _context.prev = 16;
_context.t0 = _context["catch"](2); _context.t0 = _context["catch"](2);
errorMessage = "fetchDju error : ".concat(JSON.stringify(_context.t0)); errorMessage = "fetchDju error : ".concat(JSON.stringify(_context.t0));
logStack('error', errorMessage); logStack('error', errorMessage);
...@@ -7756,12 +7754,12 @@ var ProfileTypeService = /*#__PURE__*/function () { ...@@ -7756,12 +7754,12 @@ var ProfileTypeService = /*#__PURE__*/function () {
Sentry.captureException(errorMessage); Sentry.captureException(errorMessage);
return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]); return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]);
   
case 25: case 23:
case "end": case "end":
return _context.stop(); return _context.stop();
} }
} }
}, _callee, null, [[2, 18]]); }, _callee, null, [[2, 16]]);
})); }));
   
return function (_x) { return function (_x) {
<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.69beab954af56959f24c.js"></script><script src="app/ecolyo.81179f21c4b2bfa41693.js"></script></div></body></html> <!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.69beab954af56959f24c.js"></script><script src="app/ecolyo.07239f05b59f0499725c.js"></script></div></body></html>
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment