emile 1 year ago
parent ec178d9426
commit e9291f6bfb

@ -10,7 +10,7 @@ def set_offline():
for staff_profile in all_staff_profiles:
last_working_point_activity = PointActivity.objects.filter(
point__status='Working On',
point__task__assigned_to=staff_profile.user,
point__task__assigned_to=staff_profile,
).order_by('-end_time').first()
if last_working_point_activity and last_working_point_activity.end_time <= datetime.now() - timedelta(minutes=10):

Loading…
Cancel
Save