Commit ab03098c by François C.

Modify shift_registration state condition to match 'real' use

parent e065feaa
......@@ -25,7 +25,7 @@ class ShiftRegistration(models.Model):
now = datetime.datetime.now()
yesterday = now - datetime.timedelta(hours=24)
reg_targets = shift_env.search([
('state', '=', 'open'),
('state', 'in', ['open', 'excused']),
('date_begin', '>=', yesterday.strftime("%Y-%m-%d %H:%M:%S")),
('date_begin', '<', now.strftime("%Y-%m-%d %H:%M:%S"))
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment