Check-in rules: Fall back to date_from if date_to is unset

This commit is contained in:
Raphael Michel
2021-01-07 10:17:29 +01:00
parent 5e355b4005
commit 19c2b8d89d

View File

@@ -23,7 +23,7 @@ def get_logic_environment(ev):
elif t == 'date_from':
return ev.date_from
elif t == 'date_to':
return ev.date_to
return ev.date_to or ev.date_from
elif t == 'date_admission':
return ev.date_admission or ev.date_from