Author: sevein
Date: Tue Nov 30 16:22:35 2010
New Revision: 38
Log:
Add basic filters to updates report, exclude known ips and first days.
Modified:
trunk/chk4upd/views.py
Modified: trunk/chk4upd/views.py
==============================================================================
--- trunk/chk4upd/views.py Tue Nov 30 15:35:22 2010 (r37)
+++ trunk/chk4upd/views.py Tue Nov 30 16:22:35 2010 (r38)
@@ -53,11 +53,25 @@
return HttpResponse(version, mimetype='text/plain')
@login_required
-def report(request, page=1):
+def report(request, page = 1):
- objects = Call.objects.all().order_by('-created_at')
+ import datetime
- paginator = Paginator(objects, 50)
+ objects = Call.objects.all().order_by('-created_at').exclude(
+ address__startswith = 'http://www.ica-atom.org').exclude( # Exclude demo
site
+ address__startswith = 'http://ica-atom.org').exclude( # Exclude demo
site
+ httpmeta_remoteaddr = '70.71.0.109').exclude( # Exclude known
IPs
+ httpmeta_remoteaddr = '91.121.171.199').exclude( # ...
+ httpmeta_remoteaddr = '79.148.124.205').exclude(
+ httpmeta_remoteaddr = '70.71.163.28').exclude(
+ httpmeta_remoteaddr = '80.59.9.248').exclude(
+ httpmeta_remoteaddr = '88.2.193.99').exclude(
+ httpmeta_remoteaddr = '64.124.98.10').exclude(
+ httpmeta_remoteaddr = '24.83.168.17').exclude(
+ httpmeta_remoteaddr = '99.199.102.26').exclude(
+ created_at__lt = datetime.date(2010, 11, 19)) # Filter items
before Nov. 19, 2010
+
+ paginator = Paginator(objects, 26)
try:
objects = paginator.page(page)
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.