Permalink
Browse files

looser text about the views stats, since for now it is pretty inexact

  • Loading branch information...
1 parent 544ad4b commit dab93d5aa08440c2c0c74e35275a8c72de25f303 @edsu committed Apr 2, 2012
Showing with 10 additions and 5 deletions.
  1. +1 −1 .gitignore
  2. +5 −0 bin/stats.sh
  3. +3 −3 linkypedia/web/templates/website_pages.html
  4. +1 −1 linkypedia/web/views.py
View
@@ -1,5 +1,5 @@
*.pyc
-linkypedia.db
*.log
linkypedia/settings.py
*.tmproj
+*.db
View
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cd /home/ed/Projects/linkypedia/linkypedia
+source /etc/apache2/virtualenv/bin/activate
+./manage.py stats
@@ -41,15 +41,15 @@
<th>Wikipedia Page</th>
{% if order == 'links' %}
<th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=links&amp;direction={{ other_direction }}">Links</a></th>
- <th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=views&amp;direction={{ other_direction }}" title="Number of views on Wikipedia in 2012">Views</a></th>
+ <th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=views&amp;direction={{ other_direction }}" title="Recent Views on English Wikipedia">Views</a></th>
<th><a href="{% url website_pages website.id %}?page=1&amp;order=update&amp;direction={{ direction }}">Last Update</a></th>
{% else %}{% if order == 'views' %}
<th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=links&amp;direction={{ direction }}">Links</a></th>
- <th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=views&amp;direction={{ other_direction }}" title="Number of views on Wikipedia in 2012">Views</a></th>
+ <th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=views&amp;direction={{ other_direction }}" title="Recent Views on English Wikipedia">Views</a></th>
<th><a href="{% url website_pages website.id %}?page=1&amp;order=update&amp;direction={{ direction }}">Last Update</a></th>
{% else %}
<th><a href="{% url website_pages website.id %}?page=1&amp;order=links&amp;direction={{ direction }}">Links</a></th>
- <th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=views&amp;direction={{ direction }}" title="Number of views on Wikipedia in 2012">Views</a></th>
+ <th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=views&amp;direction={{ direction }}" title="Recent Views on English Wikipedia">Views</a></th>
<th><a href="{% url website_pages website.id %}?page={{ page.number }}&amp;order=update&amp;direction={{ other_direction }}">Last Update</a></th>
{% endif %}{% endif %}
</tr>
View
@@ -90,7 +90,7 @@ def website_pages(request, website_id):
page_num = int(page_num)
# make sure we support the order
- order = request.GET.get('order', 'views')
+ order = request.GET.get('order', 'links')
direction = request.GET.get('direction', 'desc')
other_direction = 'asc' if direction == 'desc' else 'desc'

0 comments on commit dab93d5

Please sign in to comment.