Commit 5754aa08 by François C.

Modify shift_registration state condition to match actual use

parent ab03098c
......@@ -25,7 +25,7 @@ class ShiftRegistration(models.Model):
now = datetime.datetime.now()
yesterday = now - datetime.timedelta(hours=24)
reg_targets = shift_env.search([
('state', 'in', ['open', 'excused']),
('state', 'in', ['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