Linting W0511
part of W0511 Filed #321 and moved code comments to #265 Signed-off-by: Corey Shields <cshields@gmail.com>merge-requests/402/head
parent
d71114130a
commit
f1420d3e9e
|
@ -6,4 +6,3 @@ ignored-argument-names=args|kwargs
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=
|
disable=
|
||||||
R0801, # needs to remain disabled see https://github.com/PyCQA/pylint/issues/214
|
R0801, # needs to remain disabled see https://github.com/PyCQA/pylint/issues/214
|
||||||
W0511,
|
|
||||||
|
|
|
@ -98,8 +98,6 @@ def satellite(request, norad):
|
||||||
types = TRANSMITTER_TYPE
|
types = TRANSMITTER_TYPE
|
||||||
services = SERVICE_TYPE
|
services = SERVICE_TYPE
|
||||||
statuses = TRANSMITTER_STATUS
|
statuses = TRANSMITTER_STATUS
|
||||||
# TODO: this is a horrible hack, as we have to pass the entire cache to the
|
|
||||||
# template to iterate on, just for one satellite. See #237
|
|
||||||
sats_cache = cache.get('stats_satellites')
|
sats_cache = cache.get('stats_satellites')
|
||||||
if not sats_cache:
|
if not sats_cache:
|
||||||
sats_cache = []
|
sats_cache = []
|
||||||
|
@ -214,8 +212,6 @@ def about(request):
|
||||||
return render(request, 'base/about.html')
|
return render(request, 'base/about.html')
|
||||||
|
|
||||||
|
|
||||||
# TODO: replace this with a link to docs in the wiki which won't require code
|
|
||||||
# updates to maintain
|
|
||||||
def faq(request):
|
def faq(request):
|
||||||
"""View to render faq page.
|
"""View to render faq page.
|
||||||
|
|
||||||
|
@ -231,7 +227,6 @@ def stats(request):
|
||||||
"""
|
"""
|
||||||
satellites = cache.get('stats_satellites')
|
satellites = cache.get('stats_satellites')
|
||||||
observers = cache.get('stats_observers')
|
observers = cache.get('stats_observers')
|
||||||
# TODO this will never succeed, cache_statistics() runs too long to be live
|
|
||||||
if not satellites or not observers:
|
if not satellites or not observers:
|
||||||
try:
|
try:
|
||||||
cache_statistics()
|
cache_statistics()
|
||||||
|
@ -252,7 +247,6 @@ def statistics(request):
|
||||||
return JsonResponse(cached_stats, safe=False)
|
return JsonResponse(cached_stats, safe=False)
|
||||||
|
|
||||||
|
|
||||||
# TODO: this is confusing as we call it "edit" but it is the users "settings"
|
|
||||||
@login_required
|
@login_required
|
||||||
def users_edit(request):
|
def users_edit(request):
|
||||||
"""View to render user settings page.
|
"""View to render user settings page.
|
||||||
|
|
Loading…
Reference in New Issue