Permalink
Browse files

Remove unused queries

  • Loading branch information...
1 parent cd6ebb4 commit 6f68900879f588261ab3ab7cf8165808bcfcd670 @jarus jarus committed Mar 11, 2013
Showing with 0 additions and 27 deletions.
  1. +0 −27 krprj/worshipmap/views.py
@@ -104,33 +104,6 @@ def get_context_data(self, **kwargs):
* 100,
3
)
- print check
context['checks'].append(check)
- print context['checks']
-
- # date
- context['last_7days'] = KircheOsm.objects.filter(
- last_update__gt=(
- datetime.datetime.utcnow().replace(tzinfo=utc) -
- datetime.timedelta(days=7)
- )
- ).count()
- context['older_than_1week'] = KircheOsm.objects.filter(
- last_update__lt=(
- datetime.datetime.utcnow().replace(tzinfo=utc) -
- datetime.timedelta(days=7)
- )
- ).count()
- context['older_than_2weeks'] = KircheOsm.objects.filter(last_update__lt=(
- datetime.datetime.utcnow().replace(tzinfo=utc) -
- datetime.timedelta(days=14)
- )
- ).count()
- context['older_than_3weeks'] = KircheOsm.objects.filter(last_update__lt=(
- datetime.datetime.utcnow().replace(tzinfo=utc) -
- datetime.timedelta(days=21)
- )
- ).count()
-
return context

0 comments on commit 6f68900

Please sign in to comment.