Fix lint warnings
This commit is contained in:
parent
83b05a3ae2
commit
985a08545d
2 changed files with 4 additions and 5 deletions
1
TODO.md
1
TODO.md
|
@ -9,6 +9,7 @@
|
|||
complex jQuery - or consider Alpine.js
|
||||
* replace `internalNavigate` with inline flexbox layout
|
||||
* add tests for main pages returning 200
|
||||
* move `sponsors.py` and `sponsors.html` into `supporters` app
|
||||
|
||||
|
||||
# Done
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from datetime import datetime, timedelta
|
||||
from datetime import datetime
|
||||
|
||||
from django.shortcuts import render
|
||||
|
||||
|
@ -10,12 +10,10 @@ def view(request):
|
|||
|
||||
Performs object queries necessary to render the sponsors page.
|
||||
"""
|
||||
|
||||
supporters = Supporter.objects.all().filter(display_until_date__gte=datetime.now())
|
||||
supporters_count = len(supporters)
|
||||
anonymous_count = len(supporters.filter(display_name = 'Anonymous'))
|
||||
supporters = supporters.exclude(display_name = 'Anonymous').order_by('ledger_entity_id')
|
||||
|
||||
anonymous_count = len(supporters.filter(display_name='Anonymous'))
|
||||
supporters = supporters.exclude(display_name='Anonymous').order_by('ledger_entity_id')
|
||||
c = {
|
||||
'supporters' : supporters,
|
||||
'supporters_count' : supporters_count,
|
||||
|
|
Loading…
Reference in a new issue