@hestia-earth/api 0.9.26-2 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nodes/model/model.js +10 -5
- package/package.json +1 -1
|
@@ -98,17 +98,22 @@ exports.groupLogsByModel = function (data) {
|
|
|
98
98
|
var term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, log = __rest(_a, ["term", "model", "key", "should_run"]);
|
|
99
99
|
var modelKey = key || model;
|
|
100
100
|
group[term] = group[term] || {};
|
|
101
|
-
group[term][modelKey] = group[term][modelKey] || {
|
|
102
|
-
group[term][modelKey].missingLookups = __spreadArrays(group[term][modelKey].missingLookups, [
|
|
103
|
-
addMissingLookup(log)
|
|
104
|
-
]).filter(Boolean);
|
|
101
|
+
group[term][modelKey] = group[term][modelKey] || {};
|
|
105
102
|
if (typeof should_run !== 'undefined') {
|
|
106
103
|
group[term][modelKey] = __assign(__assign(__assign({}, group[term][modelKey]), log), { shouldRun: should_run === 'True' });
|
|
107
104
|
}
|
|
108
|
-
if ('requirements' in log) {
|
|
105
|
+
else if ('requirements' in log) {
|
|
109
106
|
var requirements = log.requirements, logData = __rest(log, ["requirements"]);
|
|
110
107
|
group[term][modelKey].requirements = __assign(__assign({}, (group[term][modelKey].requirements || {})), logData);
|
|
111
108
|
}
|
|
109
|
+
else if ('Missing lookup' in log) {
|
|
110
|
+
group[term][modelKey].missingLookups = __spreadArrays((group[term][modelKey].missingLookups || []), [
|
|
111
|
+
addMissingLookup(log)
|
|
112
|
+
]);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
group[term][modelKey].logs = __assign(__assign({}, (group[term][modelKey].logs || {})), log);
|
|
116
|
+
}
|
|
112
117
|
return group;
|
|
113
118
|
}, {});
|
|
114
119
|
};
|