Skip to content

Commit

Permalink
Removed paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
sitnin committed Oct 26, 2010
1 parent 6d147c3 commit 1f0fcd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datagen/datagen.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ def print_result(res, logfile):
if __name__ == "__main__":
volume = int(sys.argv[1])
logfile = sys.argv[2]
print_result(run(volume, load_data("data/"), "hl.local"), logfile)
print_result(run(volume, load_data("data/")), logfile)
3 changes: 0 additions & 3 deletions templates/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ <h1>Page {{page}}</h1>
{% end %}
{% end %}
</ul>
Pages: {% for x in xrange(1, last_page+1)%}
<a href="/posts/page/{{x}}">{{x}}</a>
{% end %}
{% end %}
3 changes: 2 additions & 1 deletion webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def get(self, page=None):
"title": title,
"tags": tags,
})
self.render("posts.html", page=page, items=posts, last_page=last_page)
# self.render("posts.html", page=page, items=posts, last_page=last_page)
self.render("posts.html", items=posts)
else:
self.write("There is no posts")

Expand Down

0 comments on commit 1f0fcd0

Please sign in to comment.