diff --git a/app.py b/app.py index 6750a90..039ef82 100644 --- a/app.py +++ b/app.py @@ -50,7 +50,7 @@ def list(): has_course = course is not None has_teacher = teacher is not None has_year = year is not None - ept = not (has_course or has_teacher or has_year) + ept = not (has_course or has_teacher or has_year) and 'page' not in request.args ps = Paper.query diff --git a/templates/list.html b/templates/list.html index 5c72308..04098d1 100644 --- a/templates/list.html +++ b/templates/list.html @@ -179,12 +179,10 @@
-
+

华清大学
 课程攻略

-
-
@@ -289,7 +287,7 @@
-

点击某一课程/教师/年份进行筛选

+

*点击某一课程/教师/年份进行筛选

@@ -325,10 +323,10 @@ {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} -
  • {{ page }}
  • +
  • {{ page }}
  • {% else %}
  • - {{ page }}(current) + {{ page }}(current)
  • {% endif %} {% else %}