fix: check_same_allow_minute_and_raise_event 判断错误

This commit is contained in:
caoqianming 2024-03-02 09:47:53 +08:00
parent 652ee31f6f
commit 1c802eafb1
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ def check_same_allow_minute_and_raise_event(cate: EventCate, employee: Employee
last_event = Event.objects.filter(
**filters).order_by('-create_time').first()
minutes = cate.same_allow_minute
if minutes > 0 and last_event and last_event.create_time + timedelta(minutes=minutes) < timezone.now():
if minutes > 0 and last_event and last_event.create_time + timedelta(minutes=minutes) > timezone.now():
return False
return True