aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-25 16:43:41 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-25 16:43:41 +0000
commitc726f56b3edbc2b97b82b777bada83a2097acb80 (patch)
tree643547815e69b467c3abbd1b2041d042766ff0ad
parentdaded6d193433cb6f76d93a4ed3833131d70f597 (diff)
downloadcheatdb-c726f56b3edbc2b97b82b777bada83a2097acb80.tar.xz
Fix bugs in topic todo
-rw-r--r--app/templates/todo/topics.html2
-rw-r--r--app/views/packages/todo.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/templates/todo/topics.html b/app/templates/todo/topics.html
index 8b39b8e..5d3e7f9 100644
--- a/app/templates/todo/topics.html
+++ b/app/templates/todo/topics.html
@@ -10,7 +10,7 @@ Topics to be Added
{% if n >= 10000 %}
<a class="btn btn-primary"
href="{{ url_for('todo_topics_page', q=query, show_discarded=show_discarded, n=100, sort=sort_by) }}">
- Paginiated List
+ Paginated List
</a>
{% else %}
<a class="btn btn-primary"
diff --git a/app/views/packages/todo.py b/app/views/packages/todo.py
index 2742f6d..803ae44 100644
--- a/app/views/packages/todo.py
+++ b/app/views/packages/todo.py
@@ -43,6 +43,7 @@ def todo_page():
topics_to_add = ForumTopic.query \
.filter(~ db.exists().where(Package.forums==ForumTopic.topic_id)) \
+ .filter_by(discarded=False) \
.count()
return render_template("todo/list.html", title="Reports and Work Queue",