Warning: session_start(): open(/var/lib/php/sessions/sess_1unlb4p0ja4hvj36i3gbbs11tt, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
svoid gazelle_addRuleFeedbackFromConcepts(Concepts concepts, O... _) {
bool overwrite = boolPar overwrite(_);
L toMerge = list(concepts, "AppliedRule");
for (Concept c : toMerge) {
S globalID = getString globalID(c);
if (empty(globalID))
continue with print("No global ID!?");
S judgement = getString judgement(c);
print(globalID + " => " + judgement);
S moduleID = empty(judgement)
? dm_gazelle_longFeedbackCRUD()
: dm_gazelle_feedbackCRUD();
O local = dm_call(moduleID, 'getFeedback, globalID);
Set fields = conceptFields_gen(c);
if (local == null) {
print(" not found");
local = dm_call(moduleID, 'uniqConcept, +globalID);
} else {
if (!anyFieldsDifferent(c, local, fields))
continue with print(" same");
else {
if (!overwrite) continue with print(" would overwrite");
print(" found, updating");
}
}
ccopyFields2_gen(c, local, fields);
}
}