зеркало из https://github.com/mozilla/FlightDeck.git
removed debug logging and _get_average_activity early return
This commit is contained in:
Родитель
88ba6e3c3c
Коммит
c6f5889892
|
@ -67,8 +67,7 @@ def get_activity_scale():
|
|||
|
||||
ACTIVITY_CACHE_KEY = 'search:activity:average'
|
||||
|
||||
def _get_average_activity():
|
||||
return 0.2
|
||||
def _get_average_activity():
|
||||
average = cache.get(ACTIVITY_CACHE_KEY)
|
||||
if average:
|
||||
return average
|
||||
|
|
|
@ -111,7 +111,7 @@ def search(request):
|
|||
|
||||
ctx.update(results)
|
||||
ctx.update(facets)
|
||||
print "\r\n\r\ntemplate:{0}\r\n\r\n".format(template)
|
||||
|
||||
if request.is_ajax():
|
||||
template = 'ajax/' + template
|
||||
return _render(request, template, ctx)
|
||||
|
|
Загрузка…
Ссылка в новой задаче