diff --git a/recruitment/__pycache__/views_frontend.cpython-312.pyc b/recruitment/__pycache__/views_frontend.cpython-312.pyc index 04d5aa8..d6e4672 100644 Binary files a/recruitment/__pycache__/views_frontend.cpython-312.pyc and b/recruitment/__pycache__/views_frontend.cpython-312.pyc differ diff --git a/recruitment/views_frontend.py b/recruitment/views_frontend.py index 0f4b9c0..ae8fb18 100644 --- a/recruitment/views_frontend.py +++ b/recruitment/views_frontend.py @@ -461,9 +461,9 @@ def dashboard_view(request): hired_candidates = candidate_queryset.filter( stage='Hired' ) - print(hired_candidates) + lst=[c.time_to_hire_days for c in hired_candidates] - print(lst) + time_to_hire_query = hired_candidates.annotate( time_diff=ExpressionWrapper( F('hired_date') - F('created_at__date'), @@ -471,14 +471,13 @@ def dashboard_view(request): ) ).aggregate(avg_time_to_hire=Avg('time_diff')) - print(time_to_hire_query) + avg_time_to_hire_days = ( time_to_hire_query.get('avg_time_to_hire').days if time_to_hire_query.get('avg_time_to_hire') else 0 ) - print(avg_time_to_hire_days) - + applied_count = candidate_queryset.filter(stage='Applied').count() advanced_count = candidate_queryset.filter(stage__in=['Exam', 'Interview', 'Offer']).count() screening_pass_rate = round( (advanced_count / applied_count) * 100, 1 ) if applied_count > 0 else 0 diff --git a/templates/meetings/meeting_details.html b/templates/meetings/meeting_details.html index d74bc79..822f8b3 100644 --- a/templates/meetings/meeting_details.html +++ b/templates/meetings/meeting_details.html @@ -536,16 +536,16 @@ body {
This email will be sent to the candidate or their hiring agency.
+{% trans "This email will be sent to the candidate or their hiring agency." %}
{% if not candidate.belong_to_an_agency %}This email will be sent to the internal and external interview participants.
+{% trans "This email will be sent to the internal and external interview participants." %}