Check-in: Change explanation weight of gate (Z#23130674)

This commit is contained in:
Raphael Michel
2023-09-15 17:20:59 +02:00
parent 6ceb5bd7ce
commit 575858aec6

View File

@@ -259,7 +259,7 @@ def _logic_explain(rules, ev, rule_data, now_dt=None):
var_weights[vname] = (1000, 0)
var_texts[vname] = _('Ticket type not allowed')
elif var == 'gate':
var_weights[vname] = (10, 0)
var_weights[vname] = (500, 0)
var_texts[vname] = _('Wrong entrance gate')
elif var in ('entries_number', 'entries_today', 'entries_days', 'minutes_since_last_entry', 'minutes_since_first_entry', 'now_isoweekday') \
or (isinstance(var, dict) and ("entries_since" in var or "entries_before" in var)):