Summary requires body

pull/215/head
M66B 4 months ago
parent 064ce7d97c
commit 1ab373d1c9

@ -182,6 +182,11 @@ public class EntityRule {
private static boolean needs(List<EntityRule> rules, String what) {
for (EntityRule rule : rules)
try {
JSONObject jaction = new JSONObject(rule.action);
int type = jaction.getInt("type");
if (type == TYPE_SUMMARIZE)
return true;
JSONObject jcondition = new JSONObject(rule.condition);
if (jcondition.has(what)) {

Loading…
Cancel
Save