Pylint fixes

This commit is contained in:
Horilla
2025-11-24 14:36:12 +05:30
parent a5be7ed718
commit 0de5661a83
11 changed files with 47 additions and 47 deletions

View File

@@ -82,4 +82,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000/health/ || exit 1
ENTRYPOINT ["/entrypoint.sh"]
CMD ["gunicorn", "horilla.wsgi:application", "--config", "docker/gunicorn.conf.py"]
CMD ["gunicorn", "horilla.wsgi:application", "--config", "docker/gunicorn.conf.py"]

View File

@@ -12,4 +12,4 @@
{{instance.render_live_capture_html|safe}} <br />
{{instance.card_action|safe}}
</div>
</div>
</div>

View File

@@ -18,4 +18,4 @@ python manage.py migrate --noinput
python manage.py collectstatic --noinput
echo "Starting server..."
exec "$@"
exec "$@"

View File

@@ -290,7 +290,7 @@
{% if employees.has_previous or employees.has_next %}
<div class="flex justify-between items-center mt-4 w-full inset-0">
<p class="text-xs text-[#666]">
{% trans "Page" %} {{ employees.number }} {% trans "of" %}
{% trans "Page" %} {{ employees.number }} {% trans "of" %}
{{ employees.paginator.num_pages }}
</p>
<div class="flex gap-3 text-[#666] items-center">
@@ -302,7 +302,7 @@
>
<i class="fa-solid fa-arrow-left"></i>
</button>
{% endif %}
{% endif %}
{{ employees.number }} / {{ employees.paginator.num_pages }}
{% if employees.has_next %}
<button
@@ -325,4 +325,4 @@
})
})
</script>
</script>

View File

@@ -27,14 +27,14 @@
{% trans "Active" %}
</th>
<th class="text-sm font-medium text-left min-w-[100px] pl-3">
{% if employees.users %}
{% if employees.users.0.finger_count %}
{% if employees.users %}
{% if employees.users.0.finger_count %}
{% trans "Finger Count" %}
{% else %}
{% trans "Face Count" %}
{% endif %}
{% else %}
{% trans "Face Count" %}
{% endif %}
{% else %}
{% trans "Biometric Template" %}
{% trans "Biometric Template" %}
{% endif %}
</th>
<th class="text-sm font-medium text-left min-w-[100px] pl-3">
@@ -78,31 +78,31 @@
{{employee.ref_user_id}}
</td>
<td class="text-sm text-left p-3 text-[#666] h-[45px]">
{% if employee.user_active == "1" %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% if employee.user_active == "1" %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% endif %}
</td>
<td class="text-sm text-left p-3 text-[#666] h-[45px] truncate">
{% if employee.finger_count or employee.face_count %}
{% if employee.finger_count or employee.face_count %}
{% if employee.finger_count %}
{{employee.finger_count}}
{% else %}
{{employee.face_count}}
{% endif %}
{% else %}
{% trans "Not Enrolled" %}
{{employee.finger_count}}
{% else %}
{{employee.face_count}}
{% endif %}
{% else %}
{% trans "Not Enrolled" %}
{% endif %}
</td>
<td class="text-sm text-left p-3 text-[#666] h-[45px] truncate">
{{employee.card_count}}
</td>
<td class="text-sm text-left p-3 text-[#666] h-[45px] truncate">
{% if employee.validity_enable == "1" %}
{% if employee.validity_enable == "1" %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% else %}
{% trans "No" %}
{% endif %}
</td>
<td class="text-sm text-left p-3 text-[#666] h-[45px] truncate">
@@ -189,7 +189,7 @@
{% if employees.paginator.has_previous or employees.paginator.has_next %}
<div class="flex justify-between items-center mt-4 w-full inset-0">
<p class="text-xs text-[#666]">
{% trans "Page" %} {{ employees.paginator.number }} {% trans "of" %}
{% trans "Page" %} {{ employees.paginator.number }} {% trans "of" %}
{{ employees.paginator.num_pages }}
</p>
<div class="flex gap-3 text-[#666] items-center">
@@ -201,9 +201,9 @@
>
<i class="fa-solid fa-arrow-left"></i>
</button>
{% endif %}
{% endif %}
{{ employees.paginator.number }} / {{ employees.paginator.num_pages }}
{{ employees.paginator.number }} / {{ employees.paginator.num_pages }}
{% if employees.paginator.has_next %}
<button
@@ -223,7 +223,7 @@
$("thead [type='checkbox']").on("change", function() {
let isChecked = $(this).is(':checked')
$("tbody [type='checkbox']").prop('checked', isChecked)
})
})
</script>
</script>

View File

@@ -109,7 +109,7 @@
{% if employees.has_previous or employees.has_next %}
<div class="flex justify-between items-center mt-4 w-full inset-0">
<p class="text-xs text-[#666]">
{% trans "Page" %} {{ employees.number }} {% trans "of" %}
{% trans "Page" %} {{ employees.number }} {% trans "of" %}
{{ employees.paginator.num_pages }}
</p>
<div class="flex gap-3 text-[#666] items-center">
@@ -121,8 +121,8 @@
>
<i class="fa-solid fa-arrow-left"></i>
</button>
{% endif %}
{{ employees.number }} / {{ employees.paginator.num_pages }}
{% endif %}
{{ employees.number }} / {{ employees.paginator.num_pages }}
{% if employees.has_next %}
<button
class="text-xs hover:text-primary-600 transition duration-300"
@@ -141,7 +141,7 @@
$("thead [type='checkbox']").on("change", function() {
let isChecked = $(this).is(':checked')
$("tbody [type='checkbox']").prop('checked', isChecked)
})
})
</script>
</script>

View File

@@ -40,9 +40,9 @@
>
<ul class="text-sm">
<li class="oh-dropdown__item">
<a href="#" class="px-4 hover:text-primary-600 transition duration-300 text-xs gap-4 items-center flex w-full"
<a href="#" class="px-4 hover:text-primary-600 transition duration-300 text-xs gap-4 items-center flex w-full"
data-toggle="oh-modal-toggle"
data-target="#objectCreateModal"
data-target="#objectCreateModal"
hx-get="{% url 'map-biometric-users' device_id %}"
hx-target="#objectCreateModalTarget">
{% trans "Map Employee" %}

View File

@@ -109,7 +109,7 @@
{% if employees.has_previous or employees.has_next %}
<div class="flex justify-between items-center mt-4 w-full inset-0">
<p class="text-xs text-[#666]">
{% trans "Page" %} {{ employees.number }} {% trans "of" %}
{% trans "Page" %} {{ employees.number }} {% trans "of" %}
{{ employees.paginator.num_pages }}
</p>
<div class="flex gap-3 text-[#666] items-center">
@@ -121,8 +121,8 @@
>
<i class="fa-solid fa-arrow-left"></i>
</button>
{% endif %}
{{ employees.number }} / {{ employees.paginator.num_pages }}
{% endif %}
{{ employees.number }} / {{ employees.paginator.num_pages }}
{% if employees.has_next %}
<button
class="text-xs hover:text-primary-600 transition duration-300"
@@ -141,7 +141,7 @@
$("thead [type='checkbox']").on("change", function() {
let isChecked = $(this).is(':checked')
$("tbody [type='checkbox']").prop('checked', isChecked)
})
})
</script>
</script>

View File

@@ -40,9 +40,9 @@
>
<ul class="text-sm">
<li class="oh-dropdown__item">
<a href="#" class="px-4 hover:text-primary-600 transition duration-300 text-xs gap-4 items-center flex w-full"
<a href="#" class="px-4 hover:text-primary-600 transition duration-300 text-xs gap-4 items-center flex w-full"
data-toggle="oh-modal-toggle"
data-target="#objectCreateModal"
data-target="#objectCreateModal"
hx-get="{% url 'map-biometric-users' device_id %}"
hx-target="#objectCreateModalTarget">
{% trans "Map Employee" %}

View File

@@ -9,4 +9,4 @@
</button>
</div>
{% include "generic/horilla_list_table.html" %}
{% include "generic/horilla_list_table.html" %}

View File

@@ -43,4 +43,4 @@
{% endfor %}
</div>
</div>
</div>
</div>