Przeglądaj źródła

feat: 新增文字错题录入功能

sequoia00 1 miesiąc temu
rodzic
commit
6725bf0f24
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      templates/subject_detail.html

+ 1 - 1
templates/subject_detail.html

@@ -108,7 +108,7 @@
 
 <!-- Content grid -->
 {% set text_errors = images | selectattr('filename', 'equalto', '') | list %}
-{% set img_errors = images | selectattr('filename', 'notequalto', '') | list %}
+{% set img_errors = images | selectattr('filename') | list %}
 {% if img_errors or text_errors %}
 <div class="mb-4 flex items-center justify-between">
   <h3 class="font-semibold text-gray-700 text-sm">{{ current_date }} 的错题({{ images|length }} 条)</h3>